schickmacher/production.yml

36 lines
775 B
YAML
Raw Normal View History

2019-09-05 08:37:43 +00:00
version: '3'
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
services:
django:
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: schickmacher_production_django
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /start
2019-09-12 09:44:59 +00:00
ports:
- "8000:5000"
2019-09-05 08:37:43 +00:00
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: schickmacher_production_postgres
volumes:
- production_postgres_data:/var/lib/postgresql/data
- production_postgres_data_backups:/backups
env_file:
- ./.envs/.production/.postgres
redis:
image: redis:5.0