Skip to content

Commit

Permalink
добавлено требование restart для контейнеров
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-xx committed Nov 13, 2023
1 parent cb90448 commit b000fcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ services:
db:
image: postgres:13.10
env_file: .env
restart: always
volumes:
- pg_data_production:/var/lib/postgresql/data/
backend:
image: sergeyxx/foodgram_backend
env_file: .env
restart: always
volumes:
- static_volume:/backend_static/
- media_volume:/media/
Expand All @@ -29,6 +31,7 @@ services:
gateway:
image: sergeyxx/foodgram_gateway
env_file: .env
restart: always
volumes:
- static_volume:/staticfiles/
- media_volume:/media/
Expand Down

0 comments on commit b000fcf

Please sign in to comment.