services: app: image: linuxserver/lidarr:${LIDARR_VERSION:-latest} container_name: lidarr-app environment: - PUID=${LIDARR_PUID:-1000} - PGID=${LIDARR_PGID:-1000} - TZ=${LIDARR_TZ:-America/Los_Angeles} volumes: - lidarr-config:/config # Lidarr's default backup folder, stored on NFS so backups survive loss of the Docker host - lidarr-backups:/config/Backups - ${LIDARR_MUSIC_PATH}:/music # Same host path + container path as Transmission (/data) so no Remote Path Mapping is needed - ${LIDARR_DOWNLOADS_PATH}:/data ports: - ${LIDARR_PORT:-8686}:8686 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8686/ping"] interval: 30s timeout: 10s retries: 3 start_period: 30s logging: driver: json-file options: max-size: 10m deploy: resources: limits: memory: 1g networks: arr_network: ipv4_address: ${LIDARR_IP:-172.31.0.32} restart: unless-stopped volumes: lidarr-config: name: lidarr-config driver: local lidarr-backups: name: lidarr-backups driver: local driver_opts: type: nfs o: "addr=${LIDARR_NFS_SERVER},rw,noatime,rsize=65536,wsize=65536,timeo=600,nfsvers=4" device: "${LIDARR_BACKUPS_NFS_DEVICE}" networks: arr_network: external: true