File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
1818 volumes :
1919 - ./tests_override.xml:/bitnami/clickhouse/etc/conf.d/override.xml:ro
2020 healthcheck :
21- test : ["CMD-SHELL", "curl -s -f http:// localhost: 9123/ping || exit 1"]
21+ test : ["CMD-SHELL", "nc -z localhost 9123 || exit 1"]
2222 interval : 5s
2323 timeout : 3s
2424 retries : 5
@@ -37,7 +37,7 @@ services:
3737 networks :
3838 - default
3939 healthcheck :
40- test : ["CMD-SHELL", "mysql -h localhost -u root -padmin -e 'SELECT 1' || exit 1"]
40+ test : ["CMD-SHELL", "nc -z localhost 3306 || exit 1"]
4141 interval : 5s
4242 timeout : 3s
4343 retries : 5
@@ -56,7 +56,7 @@ services:
5656 volumes :
5757 - ./test_mariadb.cnf:/etc/mysql/my.cnf:ro # Adjust path to MariaDB config location if needed
5858 healthcheck :
59- test : ["CMD-SHELL", "mysql -h localhost -u root -padmin -e 'SELECT 1' || exit 1"]
59+ test : ["CMD-SHELL", "nc -z localhost 3306 || exit 1"]
6060 interval : 5s
6161 timeout : 3s
6262 retries : 5
You can’t perform that action at this time.
0 commit comments