diff --git a/docker-compose.yml b/docker-compose.yml index 528c2175..bfe460a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -69,7 +69,7 @@ services: networks: - tckdev_net healthcheck: - test: ["CMD-SHELL", "wget -q http://localhost/ -O /dev/null || exit 1"] + test: ["CMD-SHELL", "test -f /var/run/nginx.pid"] interval: 10s timeout: 5s retries: 3 @@ -97,7 +97,7 @@ services: - tckdev_net restart: unless-stopped healthcheck: - test: ["CMD-SHELL", "wget -q http://localhost:80/login -O /dev/null || exit 1"] + test: ["CMD-SHELL", "wget http://localhost:80/login -O /tmp/hc 2>/dev/null; test -s /tmp/hc"] interval: 30s timeout: 10s retries: 3