126 lines
4.0 KiB
YAML
126 lines
4.0 KiB
YAML
services:
|
|
# Tdarr Server - Distributed transcoding server
|
|
# Access at: https://tdarr.${DOMAIN}
|
|
tdarr-server:
|
|
image: ghcr.io/haveagitgat/tdarr:latest
|
|
container_name: tdarr-server
|
|
restart: no
|
|
networks:
|
|
- homelab-network
|
|
- traefik-network
|
|
ports:
|
|
- 8265:8265 # Web UI port
|
|
- 8266:8266 # Server port
|
|
volumes:
|
|
- ./tdarr/server:/app/server
|
|
- ./tdarr/configs:/app/configs
|
|
- ./tdarr/logs:/app/logs
|
|
- /mnt/media:/media
|
|
- /mnt/tdarr-transcode:/temp # Transcode cache on separate drive
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
- TZ=${TZ}
|
|
- serverIP=0.0.0.0
|
|
- serverPort=8266
|
|
- webUIPort=8265
|
|
labels:
|
|
# TRAEFIK CONFIGURATION
|
|
# ==========================================
|
|
# Service metadata
|
|
- "homelab.category=media"
|
|
- "homelab.description=Distributed transcoding server"
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
# Traefik reverse proxy (comment/uncomment to disable/enable)
|
|
# If Traefik is on a remote server: these labels are NOT USED;
|
|
# configure external yml files in /traefik/dynamic folder instead.
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.tdarr.rule=Host(`tdarr.${DOMAIN}`)"
|
|
- "traefik.http.routers.tdarr.entrypoints=websecure"
|
|
- "traefik.http.routers.tdarr.tls.certresolver=letsencrypt"
|
|
- "traefik.http.routers.tdarr.middlewares=authelia@docker"
|
|
- "traefik.http.services.tdarr.loadbalancer.server.port=8265"
|
|
- "sablier.enable=true"
|
|
- "sablier.group=${SERVER_HOSTNAME}-tdarr"
|
|
- "sablier.start-on-demand=true"
|
|
|
|
# Tdarr Node - Transcoding worker
|
|
# No web UI - controlled by server
|
|
tdarr-node:
|
|
image: ghcr.io/haveagitgat/tdarr_node:latest
|
|
container_name: tdarr-node
|
|
restart: unless-stopped
|
|
networks:
|
|
- homelab-network
|
|
volumes:
|
|
- ./tdarr/configs:/app/configs
|
|
- ./tdarr/logs:/app/logs
|
|
- /mnt/media:/media
|
|
- /mnt/tdarr-transcode:/temp
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
- TZ=${TZ}
|
|
- nodeID=MainNode
|
|
- nodeIP=0.0.0.0
|
|
- nodePort=8267
|
|
- serverIP=tdarr-server
|
|
- serverPort=8266
|
|
labels:
|
|
- homelab.category=media
|
|
- homelab.description=Tdarr transcoding worker node
|
|
- "sablier.enable=true"
|
|
- "sablier.group=${SERVER_HOSTNAME}-tdarr"
|
|
- "sablier.start-on-demand=true"
|
|
|
|
# Unmanic - Another transcoding option
|
|
# Access at: https://unmanic.${DOMAIN}
|
|
unmanic:
|
|
image: josh5/unmanic:latest
|
|
container_name: unmanic
|
|
restart: no
|
|
networks:
|
|
- homelab-network
|
|
- traefik-network
|
|
ports:
|
|
- "8889:8888"
|
|
volumes:
|
|
- ./unmanic/config:/config
|
|
- /mnt/media:/library
|
|
- /mnt/unmanic-cache:/tmp/unmanic # Transcode cache on separate drive
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
- TZ=${TZ}
|
|
labels:
|
|
# TRAEFIK CONFIGURATION
|
|
# ==========================================
|
|
# Service metadata
|
|
- "homelab.category=media"
|
|
- "homelab.description=Library optimization and transcoding"
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
# Traefik reverse proxy (comment/uncomment to disable/enable)
|
|
# If Traefik is on a remote server: these labels are NOT USED;
|
|
# configure external yml files in /traefik/dynamic folder instead.
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.unmanic.rule=Host(`unmanic.${DOMAIN}`)"
|
|
- "traefik.http.routers.unmanic.entrypoints=websecure"
|
|
- "traefik.http.routers.unmanic.tls.certresolver=letsencrypt"
|
|
- "traefik.http.routers.unmanic.middlewares=authelia@docker"
|
|
- "traefik.http.services.unmanic.loadbalancer.server.port=8889"
|
|
- "sablier.enable=true"
|
|
- "sablier.group=${SERVER_HOSTNAME}-unmanic"
|
|
- "sablier.start-on-demand=true"
|
|
|
|
networks:
|
|
homelab-network:
|
|
external: true
|
|
traefik-network:
|
|
external: true
|
|
|
|
x-dockge:
|
|
urls:
|
|
- https://tdarr.${DOMAIN}
|
|
- http://${SERVER_IP}:8265
|
|
- https://unmanic.${DOMAIN}
|
|
- http://${SERVER_IP}:8888 |