Skip to content

Commit bee6b9b

Browse files
committed
Add health check condition for db service in docker-compose.yml
1 parent e166746 commit bee6b9b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ services:
2020
APP_ENV: prod
2121
APP_DEBUG: "0"
2222
depends_on:
23-
- db
23+
db:
24+
condition: service_healthy
2425
volumes:
2526
- ./var/logs:/var/www/html/var/log
2627
- ./var/cache:/var/www/html/var/cache

0 commit comments

Comments
 (0)