2019-09-12 10:02:49 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
production_postgres_data: {}
|
|
|
|
production_postgres_data_backups: {}
|
|
|
|
|
|
|
|
services:
|
|
|
|
django:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./compose/production/django/Dockerfile
|
2019-09-13 09:03:54 +00:00
|
|
|
image: docker.qabel.de/schickmacher_production_django
|
2019-09-12 10:02:49 +00:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
env_file:
|
|
|
|
- ./.envs/.production/.django
|
|
|
|
- ./.envs/.production/.postgres
|
|
|
|
command: /start
|
|
|
|
ports:
|
2019-09-12 11:28:52 +00:00
|
|
|
- "5000:5000"
|
2019-09-12 10:02:49 +00:00
|
|
|
|
|
|
|
postgres:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./compose/production/postgres/Dockerfile
|
2019-09-13 09:03:54 +00:00
|
|
|
image: docker.qabel.de/schickmacher_production_postgres
|
2019-09-12 10:02:49 +00:00
|
|
|
volumes:
|
|
|
|
- production_postgres_data:/var/lib/postgresql/data
|
|
|
|
- production_postgres_data_backups:/backups
|
|
|
|
env_file:
|
|
|
|
- ./.envs/.production/.postgres
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:5.0
|