chore: add docker healthcheck

This commit is contained in:
Jannik committed 2026-11-15 22:09:36 +01:00
1 parent b6cf2fb5a2
commit c8e1641383
1 file changed
+5
+5
View File
@@ -18,6 +18,11 @@ services:
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:3000/', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
postgres:
image: postgres:15-alpine