From adabffa533890f9a3a821990607c3120a4c3f153 Mon Sep 17 00:00:00 2001 From: Niklas rust Date: Thu, 12 Sep 2019 12:02:49 +0200 Subject: [PATCH] add actual_production.yml --- actual_production.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 actual_production.yml diff --git a/actual_production.yml b/actual_production.yml new file mode 100644 index 0000000..918a85b --- /dev/null +++ b/actual_production.yml @@ -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