moolah
moolah copied to clipboard
Our civ inspired budget
#+TITLE: Moolah #+STARTUP: indent
- Docker
First, fill out the =header-args= of this section to taste. Next, start a postgres and redis container.
#+BEGIN_SRC sh
docker run
--name moolah-db
-e POSTGRES_PASSWORD="$MOOLAH_DB_PASS"
-d postgres
docker run --name moolah-redis -d redis
#+END_SRC
Start a celery container.
#+BEGIN_SRC sh
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
#+END_SRC
Start a gunicorn container. Be sure to expose its port.
#+BEGIN_SRC sh
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
#+END_SRC
Lastly, start a public [[https://github.com/arecker/django-proxy][nginx container]]
#+BEGIN_SRC sh
docker run
--name moolah-proxy
--link moolah-gunicorn:app
-v /your/static/root:/usr/share/nginx/html
-d arecker/django-proxy:latest
#+END_SRC