switch to curl healthcheck
This commit is contained in:
@@ -12,7 +12,7 @@ services:
|
||||
- "host:${HOST_IP}"
|
||||
- "mqtt:${HOST_IP}"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:1880', (res) => process.exit(res.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:1880/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user