add healthcheck

This commit is contained in:
2026-01-30 22:05:38 +01:00
parent da5c91963d
commit 4e3bb5a6a8

View File

@@ -11,3 +11,8 @@ services:
extra_hosts:
- "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))\""]
interval: 30s
timeout: 10s
retries: 3