52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
services:
|
|
app:
|
|
image: linuxserver/sonarr:${SONARR_VERSION:-latest}
|
|
container_name: sonarr-app
|
|
environment:
|
|
- PUID=${SONARR_PUID:-1000}
|
|
- PGID=${SONARR_PGID:-1000}
|
|
- TZ=${SONARR_TZ:-America/Los_Angeles}
|
|
volumes:
|
|
- sonarr-config:/config
|
|
# Sonarr's default backup folder, stored on NFS so backups survive loss of the Docker host
|
|
- sonarr-backups:/config/Backups
|
|
- ${SONARR_TV_PATH}:/tv
|
|
# Same host path + container path as Transmission (/data) so no Remote Path Mapping is needed
|
|
- ${SONARR_DOWNLOADS_PATH}:/data
|
|
ports:
|
|
- ${SONARR_PORT:-8989}:8989
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8989/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: ${SONARR_IP:-172.31.0.30}
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
sonarr-config:
|
|
name: sonarr-config
|
|
driver: local
|
|
sonarr-backups:
|
|
name: sonarr-backups
|
|
driver: local
|
|
driver_opts:
|
|
type: nfs
|
|
o: "addr=${SONARR_NFS_SERVER},rw,noatime,rsize=65536,wsize=65536,timeo=600,nfsvers=4"
|
|
device: "${SONARR_BACKUPS_NFS_DEVICE}"
|
|
|
|
networks:
|
|
arr_network:
|
|
external: true
|