automatically restart unhealthy containers (#8)

This commit is contained in:
Markus Kahl
2021-08-31 14:03:45 +01:00
committed by GitHub
parent 1d2c5a4f3d
commit 44a239ded5

View File

@@ -71,6 +71,18 @@ services:
- db
- cache
- seeder
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/health_checks/default"]
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
autoheal:
image: willfarrell/autoheal
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
AUTOHEAL_CONTAINER_LABEL: all
worker:
<<: *app