added compose files for lidarr, radarr and sonarr
This commit is contained in:
1 parent
d55d300472
commit
79a573fcbb
7 files changed
+249
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Sonarr Docker Compose Environment Variables
|
||||
|
||||
# Image version tag (default: latest)
|
||||
SONARR_VERSION=latest
|
||||
|
||||
# User and group ID for file permissions (default: 1000)
|
||||
# Must have read/write on the TV library and downloads folder
|
||||
SONARR_PUID=1000
|
||||
SONARR_PGID=1000
|
||||
|
||||
# Timezone (default: America/Los_Angeles)
|
||||
SONARR_TZ=America/Los_Angeles
|
||||
|
||||
# Host port to expose the Sonarr web UI (default: 8989)
|
||||
SONARR_PORT=8028
|
||||
|
||||
# Host path to the TV show library (mounted at /tv)
|
||||
SONARR_TV_PATH=/mnt/tvshows
|
||||
|
||||
# Host path to the download client's folder (mounted at /data)
|
||||
# Use the same host path as TRANSMISSION_OPENVPN_DATA so both containers see downloads at /data
|
||||
SONARR_DOWNLOADS_PATH=/mnt/torrent
|
||||
|
||||
# NFS server hostname or IP address
|
||||
SONARR_NFS_SERVER=
|
||||
|
||||
# NFS device path for Sonarr backups, mounted at /config/Backups (must include leading colon, e.g. :/mnt/pool/sonarr-backups)
|
||||
SONARR_BACKUPS_NFS_DEVICE=
|
||||
|
||||
# Static IP on the external arr_network (172.31.0.0/24) so other arr containers can reach Sonarr
|
||||
SONARR_IP=172.31.0.30
|
||||
@@ -0,0 +1,51 @@
|
||||
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
|
||||
Reference in new issue
Block a user