Files
Huntarr-Sonarr/docker-compose.yml
Admin9705 0fee673acb Add health check and graceful shutdown support
- Implemented health check endpoint for Docker and orchestration systems.
- Added graceful shutdown configuration in Docker Compose and application code.
- Enhanced shutdown handling in main application and background tasks for improved diagnostics.
- Updated Dockerfile to include health check command.
- Introduced readiness check endpoint for Kubernetes-style orchestration.
2025-06-22 20:39:19 -04:00

28 lines
618 B
YAML

services:
huntarr:
build:
context: .
dockerfile: Dockerfile
container_name: huntarr
ports:
- "9705:9705"
volumes:
- huntarr-config:/config
environment:
- TZ=${TZ:-UTC}
- BASE_URL=${BASE_URL:-}
restart: unless-stopped
# Graceful shutdown configuration
stop_signal: SIGTERM
stop_grace_period: 30s
# Health check configuration
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9705/health"]
interval: 30s
timeout: 10s
start_period: 40s
retries: 3
volumes:
huntarr-config:
name: huntarr-config