2017-03-27 15:05:55 +00:00
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
dockerfile: .dockerfile
|
2017-03-28 22:49:05 +00:00
|
|
|
command: gunicorn publichealth.wsgi:application -b 0.0.0.0:5000 -w 5 --log-file=-
|
2017-03-27 15:05:55 +00:00
|
|
|
volumes:
|
2017-03-28 22:49:05 +00:00
|
|
|
- ./:/usr/src/app
|
|
|
|
- /var/log/publichealth:/var/log/publichealth
|
2017-03-27 15:05:55 +00:00
|
|
|
links:
|
2017-03-28 22:49:05 +00:00
|
|
|
- redis
|
2017-03-27 15:05:55 +00:00
|
|
|
- postgres
|
|
|
|
- elasticsearch
|
|
|
|
ports:
|
2017-03-28 09:57:18 +00:00
|
|
|
- "5000:5000"
|
2017-03-27 15:05:55 +00:00
|
|
|
environment:
|
2017-03-28 22:49:05 +00:00
|
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
|
|
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
|
|
|
|
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
|
2017-04-06 07:42:47 +00:00
|
|
|
- MAILGUN_KEY=${MAILGUN_KEY}
|
|
|
|
- MAILGUN_FROM=${MAILGUN_FROM}
|
|
|
|
- MAILGUN_DOMAIN=${MAILGUN_DOMAIN}
|
2017-03-28 22:49:05 +00:00
|
|
|
- DATABASE_URL=postgres://postgres:@postgres:5432/postgres
|
|
|
|
- ELASTICSEARCH_URL=http://elasticsearch:9200
|
|
|
|
- REDIS_URL=redis://redis:6379
|
|
|
|
- LOG_DIR=/var/log/publichealth
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
2017-03-27 15:05:55 +00:00
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
elasticsearch:
|
|
|
|
image: orchardup/elasticsearch
|
|
|
|
ports:
|
2017-03-28 22:49:05 +00:00
|
|
|
- "9200:9200"
|