Add healthcheck to crowdsec and komodo

This commit is contained in:
2025-06-28 23:31:45 +05:30
parent c2d5a5e7b2
commit f09efb6cee
2 changed files with 16 additions and 19 deletions

View File

@@ -15,6 +15,12 @@ services:
- ${APPDATA_PATH}/caddy-crowdsec/crowdsec-config:/etc/crowdsec/
- ${APPDATA_PATH}/caddy-crowdsec/caddy-logs:/var/log/caddy:ro
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --spider --quiet --tries=1 --timeout=5 http://localhost:8080/health > /dev/null 2>&1 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
caddy:
image: ryuupendragon/caddy-crowdsec:2.10.0