Update Health Check

- Node container support healthcheck.
This commit is contained in:
vndroid 2023-11-27 16:25:53 +08:00
parent 8a4623eb7b
commit e1cd8eac83
No known key found for this signature in database
GPG key ID: 7533E3CE2FF98E00
2 changed files with 8 additions and 1 deletions

View file

@ -13,6 +13,11 @@ services:
db:
condition: service_healthy
restart: always
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
db:
image: postgres:15-alpine
environment: