Skip to content

Commit

Permalink
Добавлен файл конфигурации композера для продакшена.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugemos committed Aug 30, 2023
1 parent 8437a13 commit 5611d3a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions infra/docker-compose.production.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5611d3a

Please sign in to comment.