From 5611d3a9fdec53900a059d936d20d16525c624af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=9C=D0=BE?= =?UTF-8?q?=D1=81=D0=BA=D0=B0=D0=BB=D1=8F=D0=BD=D0=BE=D0=B2?= Date: Wed, 30 Aug 2023 16:18:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=84=D0=B0=D0=B9=D0=BB=20=D0=BA=D0=BE=D0=BD=D1=84?= =?UTF-8?q?=D0=B8=D0=B3=D1=83=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BF=D0=BE=D0=B7=D0=B5=D1=80=D0=B0=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B4=D0=B0=D0=BA=D1=88=D0=B5=D0=BD=D0=B0?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/docker-compose.production.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 infra/docker-compose.production.yml diff --git a/infra/docker-compose.production.yml b/infra/docker-compose.production.yml new file mode 100644 index 0000000..2b83762 --- /dev/null +++ b/infra/docker-compose.production.yml @@ -0,0 +1,37 @@ +version: '3.3' + +volumes: + pg_data: + static_files: + media: + +services: + db: + image: postgres:13.10 + env_file: .env + volumes: + - pg_data:/var/lib/postgresql/data + + backend: + image: eugemos/foodgram_backend + env_file: .env + depends_on: + - db + volumes: + - static_files:/app/static_files + - media:/app/media + + frontend: + image: eugemos/foodgram_frontend + volumes: + - static_files:/app/static_files/ + + nginx: + image: eugemos/foodgram_gateway + depends_on: + - backend + ports: + - "80:80" + volumes: + - static_files:/usr/share/nginx/html/ + - media:/usr/share/nginx/media