1
0
IaC/compose/truenas-media.yaml
2025-01-14 14:18:24 -05:00

140 lines
3.4 KiB
YAML

# Docker compose file for truenas apps
name: "media"
# Network
networks:
apps:
external: true
name: apps
services:
cert-sorter:
container_name: cert-sorter
image: code.balsillie.net/michael/containers/cert-sorter:latest
pull_policy: always
restart: 'no'
volumes:
- /mnt/hdd/apps/certbot/etc:/etc/letsencrypt
- /mnt/hdd/apps/cert-1000:/dest/1000
network_mode: none
jellyfin:
container_name: jellyfin
image: code.balsillie.net/michael/containers/jellyfin:latest
pull_policy: always
user: jellyfin:jellyfin
depends_on:
cert-sorter:
condition: service_completed_successfully
required: true
restart: true
restart: unless-stopped
hostname: jellyfin
domainname: balsillie.house
devices:
- /dev/dri/card0:/dev/dri/card0
- /dev/dri/renderD128:/dev/dri/renderD128
environment:
- JELLYFIN_PublishedServerUrl=https://jellyfin.balsillie.house
networks:
apps:
ipv4_address: 10.96.10.101
link_local_ips: []
volumes:
- /mnt/hdd/apps/jellyfin/config:/config
- /mnt/hdd/apps/jellyfin/cache:/cache
- /mnt/hdd/media:/media
- /mnt/hdd/apps/cert-1000:/cert
qbittorrent:
container_name: torrent
image: code.balsillie.net/michael/containers/qbittorrent:latest
pull_policy: always
depends_on:
cert-sorter:
condition: service_completed_successfully
required: true
restart: true
restart: unless-stopped
hostname: torrent
domainname: balsillie.house
dns: 10.2.0.1
user: ubuntu
networks:
apps:
ipv4_address: 10.96.10.102
link_local_ips: []
volumes:
- /mnt/hdd/apps/torrent:/config
- /mnt/hdd/media:/media
- /mnt/hdd/apps/cert-1000:/cert
sonarr:
container_name: sonarr
image: code.balsillie.net/michael/containers/sonarr:latest
pull_policy: always
depends_on:
cert-sorter:
condition: service_completed_successfully
required: true
restart: true
restart: unless-stopped
hostname: tv
domainname: balsillie.house
user: ubuntu
networks:
apps:
ipv4_address: 10.96.10.103
link_local_ips: []
volumes:
- /mnt/hdd/apps/sonarr:/config
- /mnt/hdd/media:/media
- /mnt/hdd/apps/cert-1000:/cert
radarr:
container_name: radarr
image: code.balsillie.net/michael/containers/radarr:latest
pull_policy: always
depends_on:
cert-sorter:
condition: service_completed_successfully
required: true
restart: true
restart: unless-stopped
hostname: movies
domainname: balsillie.house
user: ubuntu
networks:
apps:
ipv4_address: 10.96.10.104
link_local_ips: []
volumes:
- /mnt/hdd/apps/radarr:/config
- /mnt/hdd/media:/media
- /mnt/hdd/apps/cert-1000:/cert
prowlarr:
container_name: prowlarr
image: code.balsillie.net/michael/containers/prowlarr:latest
pull_policy: always
depends_on:
cert-sorter:
condition: service_completed_successfully
required: true
restart: true
restart: unless-stopped
hostname: index
domainname: balsillie.house
user: ubuntu
networks:
apps:
ipv4_address: 10.96.10.105
link_local_ips: []
volumes:
- /mnt/hdd/apps/prowlarr:/config
- /mnt/hdd/media:/media
- /mnt/hdd/apps/cert-1000:/cert