version: '3.8' services: sonarr: image: linuxserver/sonarr:latest container_name: sonarr environment: - PUID=${PUID:-1234} - PGID=${PGID:-65432} - TZ=${TZ:-Europe/London} - UMASK=022 volumes: - ${CONFIG_ROOT:-/volume1/docker}/sonarr:/config - ${DATA_ROOT:-/volume1/data}:/data ports: - ${SONARR_PORT:-8989}:8989/tcp network_mode: ${NETWORK_MODE:-synobridge} security_opt: - no-new-privileges:true restart: always healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8989/ping"] interval: 30s timeout: 10s retries: 3 start_period: 40s