coolify/docker-compose.excluded.yml

26 lines
652 B
YAML
Raw Normal View History

version: '3.8'
services:
web:
image: nginx:alpine
ports:
- "8085:80"
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
backup:
image: nginx:alpine
exclude_from_hc: true
healthcheck:
# Even though this will fail, it's excluded from health checks
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:9999/"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
# Should still show "running (healthy)" because backup is excluded