public-health-ch/docker-compose.yml

26 lines
514 B
YAML
Raw Normal View History

2017-03-27 15:05:55 +00:00
web:
build: .
dockerfile: .dockerfile
command: python manage.py runserver 0.0.0.0:80
volumes:
- ./:/usr/src/app
links:
- postgres
- elasticsearch
ports:
- "80:80"
environment:
- DEBUG=True
- DEV=True
- DATABASE_URL=postgres://postgres:@postgres:5432/postgres
- ELASTICSEARCH_URL=http://elasticsearch:9200
- SECRET_KEY=notasecretreplaceme
postgres:
image: postgres
ports:
- "5432:5432"
elasticsearch:
image: orchardup/elasticsearch
ports:
- "9200:9200"