add actual_production.yml
This commit is contained in:
parent
e1a9fc75d2
commit
adabffa533
1 changed files with 35 additions and 0 deletions
35
actual_production.yml
Normal file
35
actual_production.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
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
|
||||||
|
ports:
|
||||||
|
- "8000:5000"
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in a new issue