feat: add healthcheck for docker compose services
This commit is contained in:
@@ -26,6 +26,12 @@ services:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- /mnt/synology_drive:/mnt/synology_drive:rw
|
||||
- ./traefik-config:/config:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8080/api/version"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user