Skip to content

Commit

Permalink
docker restart always
Browse files Browse the repository at this point in the history
  • Loading branch information
VVVas committed Oct 11, 2023
1 parent 97ce9a7 commit c6c48ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ services:
db:
image: postgres:13.10
env_file: .env
restart: always
volumes:
- pg_data:/var/lib/postgresql/data
backend:
depends_on:
- db
image: vvvas/foodgram_backend
env_file: .env
restart: always
volumes:
- static:/app/static
- media:/app/media
Expand All @@ -30,6 +32,7 @@ services:
image: vvvas/foodgram_gateway
ports:
- 9500:80
restart: always
volumes:
- static:/app/static
- media:/app/media
3 changes: 3 additions & 0 deletions infra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
db:
image: postgres:13.10
env_file: .env
restart: always
volumes:
- pg_data:/var/lib/postgresql/data

Expand All @@ -17,6 +18,7 @@ services:
- db
build: ../backend/
env_file: .env
restart: always
volumes:
- static:/app/static
- media:/app/media
Expand All @@ -33,6 +35,7 @@ services:
build: ../infra
ports:
- 9500:80
restart: always
volumes:
- static:/app/static
- media:/app/media

0 comments on commit c6c48ca

Please sign in to comment.