diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 088d98d..9752fb7 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -87,7 +87,10 @@ services: api: condition: service_started healthcheck: - test: ["CMD-SHELL", "wget -q --spider http://localhost:80/ || exit 1"] + # 127.0.0.1, not localhost: nginx listens IPv4-only (0.0.0.0:80) but + # `localhost` resolves to ::1 first inside the container → the probe hit + # nothing and reported unhealthy while the panel served fine on IPv4. + test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:80/ || exit 1"] interval: 10s timeout: 5s retries: 3