Add healthcheck
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user