mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-08 03:07:51 +00:00
Fix web health check for release compose
This commit is contained in:
parent
9ae9b93ca7
commit
b1aeb3c8a2
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue