2017-03-27 15:05:55 +00:00
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
dockerfile: .dockerfile
|
2017-03-28 09:57:18 +00:00
|
|
|
command: python manage.py runserver 0.0.0.0:5000
|
2017-03-27 15:05:55 +00:00
|
|
|
volumes:
|
|
|
|
- ./:/usr/src/app
|
|
|
|
links:
|
2017-03-28 20:28:33 +00:00
|
|
|
- frontend
|
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:
|
|
|
|
- DEBUG=True
|
|
|
|
- DEV=True
|
|
|
|
- DATABASE_URL=postgres://postgres:@postgres:5432/postgres
|
|
|
|
- ELASTICSEARCH_URL=http://elasticsearch:9200
|
|
|
|
- SECRET_KEY=notasecretreplaceme
|
2017-03-28 20:28:33 +00:00
|
|
|
frontend:
|
|
|
|
build: .
|
|
|
|
dockerfile: .dockerfile-frontend
|
|
|
|
volumes:
|
|
|
|
- ./:/usr/src/app
|
|
|
|
working_dir: /usr/src/app
|
2017-03-27 15:05:55 +00:00
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
elasticsearch:
|
|
|
|
image: orchardup/elasticsearch
|
|
|
|
ports:
|
|
|
|
- "9200:9200"
|