Skip to content

Commit f875b97

Browse files
committed
Update healthcheck commands in Docker Compose for improved reliability
1 parent 26ddcba commit f875b97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose/apim-is-as-km-with-analytics/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ services:
2929
hard: 40000
3030
command: [--ssl=0]
3131
healthcheck:
32-
test: ["CMD", "mysqladmin" ,"ping", "-uroot", "-proot"]
32+
test: ["CMD", "sh", "-c", "mysqladmin ping -uroot -proot && [ -f /var/lib/mysql/initialization-complete.flag ]"]
3333
interval: 30s
3434
timeout: 60s
3535
retries: 5
3636
start_period: 80s
3737
is-as-km:
3838
build: ./dockerfiles/is-as-km
3939
healthcheck:
40-
test: ["CMD", "sh", "-c", "mysqladmin ping -uroot -proot && [ -f /var/lib/mysql/initialization-complete.flag ]"]
40+
test: ["CMD", "curl", "--fail", "http://localhost:9444/api/health-check/v1.0/health"]
4141
interval: 10s
4242
start_period: 180s
4343
retries: 20

0 commit comments

Comments
 (0)