fix sso healtcheck

This commit is contained in:
lendry
2026-06-24 15:28:03 +03:00
parent 3aba59ef84
commit ecd95c5698
4 changed files with 36 additions and 7 deletions

View File

@@ -110,10 +110,11 @@ services:
ldap-auth:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://localhost:3001/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:3001/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
interval: 10s
timeout: 5s
retries: 10
timeout: 10s
retries: 12
start_period: 120s
api-gateway:
pull_policy: build
@@ -143,10 +144,11 @@ services:
minio:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://localhost:3000/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:3000/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
interval: 10s
timeout: 5s
retries: 10
timeout: 10s
retries: 12
start_period: 60s
media-ws:
pull_policy: build