health-check fixes
This commit is contained in:
@@ -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
|
||||
@@ -257,7 +257,7 @@ services:
|
||||
"--no-verbose",
|
||||
"--tries=1",
|
||||
"--spider",
|
||||
"http://localhost:5000/status"
|
||||
"http://127.0.0.1:5000/status"
|
||||
]
|
||||
timeout: 5s
|
||||
interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user