Skip to content

Commit 081be87

Browse files
committed
hotfix: well, unless-stopped is better
1 parent 335e6a4 commit 081be87

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ services:
1010
condition: service_healthy
1111
env_file:
1212
- .env
13-
restart: always
13+
restart: unless-stopped
1414
db:
1515
image: mysql:8.0
16-
restart: always
1716
healthcheck:
1817
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
1918
timeout: 20s
@@ -26,6 +25,6 @@ services:
2625
volumes:
2726
- ./db/database.sql:/docker-entrypoint-initdb.d/init.sql
2827
- db_data:/var/lib/mysql
29-
restart: always
28+
restart: unless-stopped
3029
volumes:
3130
db_data:

0 commit comments

Comments
 (0)