Skip to content

Commit d6822de

Browse files
Change timeout and update test of healthcheck for db service to the docker-compose.yml
1 parent 6384bba commit d6822de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ services:
1919
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
2020
restart: always
2121
healthcheck:
22-
test: ["CMD-SHELL", "mysqladmin --user=$${DB_USERNAME} --password=$${DB_PASSWORD} --host=localhost ping"]
22+
test: [ "CMD-SHELL", "/usr/bin/mysql --user=${DB_USERNAME} --password=${DB_PASSWORD} --execute \"SHOW DATABASES;\"" ]
2323
interval: 10s
2424
retries: 5
2525
start_period: 30s
26-
timeout: 10s
26+
timeout: 20s

0 commit comments

Comments
 (0)