Use 127.0.0.1 in healthchecks (localhost resolves to ::1 in alpine, nginx/directus listen IPv4 only)
This commit is contained in:
+2
-2
@@ -268,7 +268,7 @@ services:
|
||||
# Single backend service shared by all three routers above.
|
||||
- "traefik.http.services.trm-directus.loadbalancer.server.port=8055"
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'wget -qO- http://localhost:8055/server/health || exit 1']
|
||||
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:8055/server/health || exit 1']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
# First boot includes Directus's internal migrations (~30–45 s on
|
||||
@@ -315,7 +315,7 @@ services:
|
||||
- "traefik.http.routers.trm-spa.tls.certresolver=le"
|
||||
- "traefik.http.services.trm-spa.loadbalancer.server.port=80"
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'wget -qO- http://localhost/ || exit 1']
|
||||
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1/ || exit 1']
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
start_period: 5s
|
||||
|
||||
Reference in New Issue
Block a user