Skip to content

Commit

Permalink
refactor: change docker restart to unless-stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Nov 29, 2024
1 parent 4247a4e commit 91b8621
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/docker/docker-compose-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ volumes:
services:
mem:
image: redis:alpine
restart: always
restart: unless-stopped
ports:
- 6379:6379
tmpfs:
- /data

db:
image: mysql:8.0
restart: always
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: maple
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ volumes:
services:
fe:
image: nginx:alpine
restart: always
restart: unless-stopped
volumes:
- ./frontend/dist:/usr/share/nginx/html
configs:
Expand All @@ -25,7 +25,7 @@ services:

be:
image: openjdk:21-jdk-slim
restart: always
restart: unless-stopped
environment:
SPRING_PROFILES_ACTIVE: prod
JASYPT_PASSWORD: ${JASYPT_PASSWORD}
Expand All @@ -46,13 +46,13 @@ services:

mem:
image: redis:alpine
restart: always
restart: unless-stopped
tmpfs:
- /data

db:
image: mysql:8.0
restart: always
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: maple
Expand Down

0 comments on commit 91b8621

Please sign in to comment.