Skip to content

arecker/moolah

Repository files navigation

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