Update Health Check

- Node container support healthcheck.
This commit is contained in:
vndroid committed 2023-11-27 16:25:53 +08:00
1 parent 8a4623eb7b
commit e1cd8eac83
2 files changed
+8 -1

No files matched your search

+5
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: