Skip to content

Commit 1e430bf

Browse files
phansysfranmomu
authored andcommitted
[Docker] Update healtcheck property at "mysql" service in order to use the "CMD-SHELL" test
1 parent 1b1c715 commit 1e430bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
mysql:
1919
image: mysql:8.0
2020
healthcheck:
21-
test: ['CMD', 'mysql', '-h', 'mysql', '--user=root', '--password=${MYSQL_ROOT_PASSWORD}', '-e', 'status']
21+
test: ["CMD-SHELL", "mysql -h mysql --user=root --password=$${MYSQL_ROOT_PASSWORD} -e status"]
2222
interval: 10s
2323
timeout: 2s
2424
retries: 5

0 commit comments

Comments
 (0)