• Stars
    star
    198
  • Rank 195,728 (Top 4 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Our civ inspired budget

Moolah

Docker

First, fill out the header-args of this section to taste. Next, start a postgres and redis container.

docker run \
       --name moolah-db \
       -e POSTGRES_PASSWORD="$MOOLAH_DB_PASS" \
       -d postgres
docker run --name moolah-redis -d redis

Start a celery container.

docker run \
       --name moolah-celery \
       -e HOST="$MOOLAH_HOST" \
       -e DB_PASS="$MOOLAH_DB_PASS" \
       -e SECRET_KEY="$MOOLAH_SECRET_KEY" \
       --link moolah-redis:redis \
       --link moolah-db:db \
       -d arecker/moolah:latest celery

Start a gunicorn container. Be sure to expose its port.

docker run \
       --name moolah-gunicorn \
       -e HOST="$MOOLAH_HOST" \
       -e DB_PASS="$MOOLAH_DB_PASS" \
       -e SECRET_KEY="$MOOLAH_SECRET_KEY" \
       --link moolah-redis:redis \
       --link moolah-db:db \
       --expose 80 \
       -d arecker/moolah:latest gunicorn

Lastly, start a public nginx container

docker run \
       --name moolah-proxy \
       --link moolah-gunicorn:app \
       -v /your/static/root:/usr/share/nginx/html \
       -d arecker/django-proxy:latest