Files
Terraform/roles/ind/navidrome/docker-compose.yml
2025-03-17 02:50:20 -05:00

87 lines
2.2 KiB
YAML

networks:
media-network:
name: media-network
driver: bridge
ipam:
driver: default
config:
- subnet: ${DOCKER_SUBNET:?err}
gateway: ${DOCKER_GATEWAY:?err}
services:
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
restart: always
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
volumes:
- ./data/gluetun:/gluetun
ports:
- 11000:6881/udp #rutorrent
- 11001:11001 #rutorrent
- 11002:8080 #rutorrent
- 11003:9000 #rutorremt
- 4733:4733 #rutorrent
environment:
- PUID=1000
- PGID=995
- TZ=America/Chicago
- VPN_SERVICE_PROVIDER=airvpn
- VPN_TYPE=openvpn # change it to your protocol
- OPENVPN_CUSTOM_CONFIG=/gluetun/ipvanish.openvpn.conf
- VPN_INTERFACE=tun0
- FIREWALL_OUTBOUND_SUBNETS=192.168.0.0/24
- SERVER_CITIES="Chicago Illinois"
- FIREWALL_VPN_INPUT_PORTS=4733
rutorrent:
image: crazymax/rtorrent-rutorrent:latest
container_name: rutorrent
environment:
- PUID=2000
- PGID=995
- TZ=America/Chicago
- XMLRPC_PORT=11001 #the default port is 8000 but mine was already in use. if yours is free then you don't need this line and you can change this line '- 11001:11001' in ports to '- 11001:8000'
- RT_INC_PORT=4733
volumes:
- ./data/rutorrent/data:/data
- /data:/downloads
- ./data/rutorrent/password:/passwd
network_mode: service:gluetun
security_opt:
- no-new-privileges:true
restart: always
lidarr:
container_name: lidarr
image: ghcr.io/hotio/lidarr
ports:
- "8686:8686"
environment:
- PUID=2000
- PGID=1000
- UMASK=002
- TZ=Etc/UTC
volumes:
- ./data/lidarr/:/config
- /data:/data
navidrome:
image: deluan/navidrome:latest
user: 2000:995 # should be owner of volumes
ports:
- "4533:4533"
restart: unless-stopped
environment:
# Optional: put your config options customization here. Examples:
ND_SCANSCHEDULE: 1h
ND_LOGLEVEL: info
ND_SESSIONTIMEOUT: 24h
ND_BASEURL: ""
volumes:
- "./data/navidrome/:/data"
- "/data/:/music:ro"