2017-04-20 02:47:48 +03:00
|
|
|
version: "3"
|
2016-11-09 23:06:28 +03:00
|
|
|
|
2017-04-20 02:47:48 +03:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: app:build
|
|
|
|
env_file: .env
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
links:
|
|
|
|
- db
|
|
|
|
volumes:
|
|
|
|
- ./app:/app
|
2017-06-30 21:23:00 +03:00
|
|
|
command: ["/app/bin/wait-for-it.sh", "db:5432", "--", "python", "/app/manage.py", "runserver", "0:7001"]
|
2017-04-20 02:47:48 +03:00
|
|
|
networks:
|
|
|
|
- private_nw
|
2017-05-19 21:36:55 +03:00
|
|
|
- public_nw
|
2016-11-09 23:06:28 +03:00
|
|
|
|
2017-04-20 02:47:48 +03:00
|
|
|
nginx:
|
|
|
|
build: ./nginx
|
2017-06-13 22:08:50 +03:00
|
|
|
env_file: .env
|
2017-04-20 02:47:48 +03:00
|
|
|
links:
|
|
|
|
- app
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
networks:
|
|
|
|
- private_nw
|
|
|
|
- public_nw
|
2016-11-09 23:06:28 +03:00
|
|
|
|
2017-04-20 02:47:48 +03:00
|
|
|
db:
|
|
|
|
restart: always
|
|
|
|
image: postgres:9.6
|
|
|
|
volumes:
|
|
|
|
- db_volume:/var/lib/postgresql
|
|
|
|
networks:
|
|
|
|
- private_nw
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db_volume:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
private_nw:
|
|
|
|
internal: true
|
|
|
|
public_nw:
|