fix(healthcheck): correct arrow syntax and add unit tests

This commit is contained in:
venus
2026-09-13 15:09:11 -05:00
parent eddbf5470e
commit 04a39ca852
3 changed files with 84 additions and 3 deletions
+3 -1
View File
@@ -11,9 +11,11 @@ services:
container_name: river_rooks_web
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "healthcheck.js"]
test: ["CMD", "node", "test/healthcheck.js"]
interval: 30s
timeout: 3s
start_period: 3s
retries: 3
environment:
- "SITE_DOMAIN=${SITE_DOMAIN:?Error: SITE_DOMAIN is not set. Please define SITE_DOMAIN in .env}"
- "SITE_URL=${SITE_URL:-https://${SITE_DOMAIN}}"