chore: add docker healthcheck
This commit is contained in:
1 parent
225b36bc29
commit
1630760129
1 file changed
+5
@@ -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
|
||||
Reference in new issue
Block a user