update healthcheck to use 127.xx

This commit is contained in:
taogaetz 2025-09-14 15:44:03 -04:00
parent 1fc17a8039
commit 05850f3840

View File

@ -13,10 +13,11 @@ services:
- MAGIC_LINK_TOKEN=${MAGIC_LINK_TOKEN}
- CLOUDINARY_URL=${CLOUDINARY_URL}
- ORIGIN=${ORIGIN}
- ACCESS_PIN=${ACCESS_PIN}
volumes:
- /home/chefbible/data:/app/data
healthcheck:
test: [ "CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })" ]
test: [ "CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:3000/health" ]
interval: 30s
timeout: 10s
retries: 3