fix(web): replace wget --spider with wget -qO /dev/null (BusyBox alpine compat)
wget --spider is GNU wget only; nginx:alpine uses BusyBox wget which does not support --spider, causing the container healthcheck to fail and Traefik to return 503 for dashboard.barodine.net. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
3790f67e64
commit
85b33026e7
2 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ services:
|
|||
- 'traefik.http.middlewares.agenthub-dashboard-headers.headers.customrequestheaders.X-Forwarded-Proto=https'
|
||||
- 'traefik.http.routers.agenthub-dashboard.middlewares=agenthub-dashboard-headers'
|
||||
healthcheck:
|
||||
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost/healthz']
|
||||
test: ['CMD', 'wget', '-qO', '/dev/null', 'http://localhost/healthz']
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
|
|
|||
|
|
@ -83,6 +83,6 @@ EOF
|
|||
EXPOSE 80
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --retries=3 --start-period=5s \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost/healthz || exit 1
|
||||
CMD wget -qO /dev/null http://localhost/healthz || exit 1
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue