health-check fixes

This commit is contained in:
2026-06-03 14:25:45 +02:00
parent 83cbec8276
commit aa6386c7de
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ services:
"CMD",
"node",
"-e",
"require('http').get('http://localhost:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"
"require('http').get('http://'+require('os').hostname()+':3000/api/profile',r=>{process.exit(0)}).on('error',()=>process.exit(1))"
]
timeout: 5s
interval: 5s
@@ -255,7 +255,7 @@ services:
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:5000/status"
"http://127.0.0.1:5000/status"
]
timeout: 5s
interval: 5s