Fix mysql healthcheck shell evaluation

This commit is contained in:
Atharv1705
2026-07-15 18:35:45 +05:30
parent 6c84c4b40e
commit ccf1f440e7
+1 -1
View File
@@ -39,7 +39,7 @@ services:
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-p$${MYSQL_ROOT_PASSWORD}"]
test: ["CMD-SHELL", "mysqladmin ping -h localhost -uroot -p$$MYSQL_ROOT_PASSWORD"]
interval: 10s
timeout: 5s
retries: 10