Add healthcheck configuration to deploy-compose.swarm.yml for improved service monitoring
This commit is contained in:
@@ -37,6 +37,12 @@ services:
|
|||||||
- /home/trav/biz-bud:/mnt/biz-bud
|
- /home/trav/biz-bud:/mnt/biz-bud
|
||||||
- /home/trav/portainer:/mnt/portainer
|
- /home/trav/portainer:/mnt/portainer
|
||||||
- /home/trav/repos:/mnt/repos
|
- /home/trav/repos:/mnt/repos
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "curl -f http://localhost:3080/health || exit 1"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
|||||||
Reference in New Issue
Block a user