Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
# system setting
export DOCKERIZED=true

# if use AWS algorithm, then you must use a static IP address
export LOCAL_ALGORITHM=true
export HOST_IP=<your host IP address>
export HOME=<your path on host machine>
export BUCKET_NAME=macroscope-smile

# single user version vs multiple users 
export SINGLE_USER=true

# create mounted volumes on host machine
mkdir -p ${HOME}/smile_data
mkdir -p ${HOME}/smile_data/${BUCKET_NAME}
mkdir -p ${HOME}/smile_user
mkdir -p ${HOME}/smile_tag

# email notification (To enable notification, uncomment below and put down valid email server information) 
# export EMAIL_HOST=
# export EMAIL_PORT=
# export EMAIL_FROM_ADDRESS=
# export EMAIL_PASSWORD=

# put down your own RANDOM keys at least 8 digits;
# if wish to align with your AWS deployment, please put down AWS access key and secret (Not required if LOCAL_ALGORITHM=true) 
export AWS_ACCESSKEY=AAAAAAAAAAAAAAAAAAAAA
export AWS_ACCESSKEYSECRET=BBBBBBBBBBBBBBBBBBBBBBBBBB

# social media platforms
export REDDIT_CLIENT_ID=
export REDDIT_CLIENT_SECRET=
export TWITTER_CONSUMER_KEY=
export TWITTER_CONSUMER_SECRET=

# export
export BOX_CLIENT_ID=
export BOX_CLIENT_SECRET=
export DROPBOX_CLIENT_ID=
export DROPBOX_CLIENT_SECRET=
export GOOGLE_CLIENT_ID=
export GOOGLE_CLIENT_SECRET=

# start
docker-compose -f docker-compose-smile.yml up

# stop
# docker-compose -f docker-compose-smile.yml down -v

...

  • You need to place your host IP address to HOST_IP variable. For example, mine IP is 192.168.10.12. If you are a mac user, you can find your IP here

Image AddedImage Added


  • The HOME variable will be the location to hold persistent data, such as user information, social media and analytics output, tags and etc.

  • When set SINGLE_USER=true, it uses your home user name on your machine. When set SINGLE_USER=false, you will be redirect to registration/login page.

How to Run

All images you needed to run the stack have already been pushed to Docker Hub: https://hub.docker.com/orgs/socialmediamacroscope/repositories
All you need is the YAML configuration file to run.

You must Download the docker compose YAML file

compose yaml file here:

View file
namedocker-compose-smile.yml
height250

To Start

run the prewritten shell script:

...