mirror of
https://github.com/plexguide/Huntarr-Sonarr.git
synced 2025-12-16 20:04:16 -06:00
- 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.
28 lines
618 B
YAML
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 |