Skip to content

Commit

Permalink
Clean up the healthcheck command.
Browse files Browse the repository at this point in the history
  • Loading branch information
desrosj committed Dec 3, 2024
1 parent 795c63a commit 012a73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ services:
command: ${LOCAL_DB_AUTH_OPTION-}

healthcheck:
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" ]
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" ]
timeout: 5s
interval: 5s
retries: 10
Expand Down

0 comments on commit 012a73b

Please sign in to comment.