Skip to content

Commit 012a73b

Browse files
committed
Clean up the healthcheck command.
1 parent 795c63a commit 012a73b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ services:
8282
command: ${LOCAL_DB_AUTH_OPTION-}
8383

8484
healthcheck:
85-
test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ] && [ \"$LOCAL_DB_VERSION\" != \"5.5\" ] && [ \"$LOCAL_DB_VERSION\" != \"10.0\" ] && [ \"$LOCAL_DB_VERSION\" != \"10.1\" ] && [ \"$LOCAL_DB_VERSION\" != \"10.2\" ] && [ \"$LOCAL_DB_VERSION\" != \"10.3\" ]; then mariadb-admin ping -h localhost; else mysqladmin ping -h localhost; fi" ]
85+
test: [ "CMD-SHELL", "if [ \"$LOCAL_DB_TYPE\" = \"mariadb\" ]; then case \"$LOCAL_DB_VERSION\" in 5.5|10.0|10.1|10.2|10.3) mysqladmin ping -h localhost || exit $?;; *) mariadb-admin ping -h localhost || exit $?;; esac; else mysqladmin ping -h localhost || exit $?; fi" ]
8686
timeout: 5s
8787
interval: 5s
8888
retries: 10

0 commit comments

Comments
 (0)