34 строки
495 B
Plaintext
34 строки
495 B
Plaintext
app:
|
|
image: app:build
|
|
env_file: .env
|
|
stdin_open: true
|
|
tty: true
|
|
expose:
|
|
- "7001"
|
|
links:
|
|
- db
|
|
volumes:
|
|
- ./app:/app
|
|
command: ["/app/bin/wait-for-it.sh", "db:5432", "--", "python", "/app/manage.py", "runserver", "0:7001"]
|
|
|
|
nginx:
|
|
build: ./nginx
|
|
links:
|
|
- app
|
|
ports:
|
|
- "80:80"
|
|
|
|
db:
|
|
restart: always
|
|
image: postgres:9.6
|
|
volumes_from:
|
|
- data
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
data:
|
|
image: busybox
|
|
volumes:
|
|
- /var/lib/postgresql
|
|
command: "true"
|