chore: add docker healthcheck

This commit is contained in:
Jannik committed 2026-11-15 21:42:19 +01:00
1 parent 225b36bc29
commit 1630760129
1 file changed
+5
+5
View File
@@ -10,3 +10,8 @@ services:
- PORT=3000
volumes:
- ./data:/app/data
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3