Add healthcheck

This commit is contained in:
2026-01-07 19:12:45 +01:00
parent d50aa63c00
commit 1a641cbdf9
3 changed files with 8 additions and 2 deletions

View File

@@ -6,9 +6,9 @@ services:
expose:
- 3000
volumes:
- nginx_cache:/var/cache/nginx
- ./nginx_cache:/var/cache/nginx
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/?url=http://httpbin.org/get"]
test: ["CMD-SHELL", "curl -f http://localhost:3000/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3