mirror of
https://github.com/opf/openproject-deploy.git
synced 2026-02-14 16:59:51 +00:00
automatically restart unhealthy containers (#8)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user