Fix web health check for release compose

This commit is contained in:
vsxd 2026-03-13 16:49:08 +08:00 • committed by Xudong Sun
parent 9ae9b93ca7
commit b1aeb3c8a2
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ services:
server:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/nginx-health"]
test: ["CMD", "wget", "-qO-", "http://127.0.0.1/nginx-health"]
interval: 10s
timeout: 5s
retries: 12

View file

@ -14,4 +14,4 @@ COPY docker-entrypoint.d/30-runtime-config.sh /docker-entrypoint.d/30-runtime-co
RUN chmod +x /docker-entrypoint.d/30-runtime-config.sh
EXPOSE 80
HEALTHCHECK --interval=10s --timeout=3s \
CMD wget -qO- http://localhost/nginx-health || exit 1
CMD wget -qO- http://127.0.0.1/nginx-health || exit 1