diff --git a/docker-compose.yml b/docker-compose.yml index 5462f5c..856ac82 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,4 +26,33 @@ services: - 8080:8080 - 6881:6881 - 6881:6881/udp - restart: unless-stopped \ No newline at end of file + restart: unless-stopped + jellyfin: + image: jellyfin/jellyfin + container_name: jellyfin + # Optional - specify the uid and gid you would like Jellyfin to use instead of root + user: uid:gid + ports: + - 8096:8096/tcp + - 7359:7359/udp + volumes: + - /mnt/hdd/jellyfin/config:/config + - /mnt/hdd/jellyfincache:/cache + - type: bind + source: /mnt/hdd/jellyfin/media + target: /media + - type: bind + source: /mnt/hdd/jellyfin/media2 + target: /media2 + read_only: true + # Optional - extra fonts to be used during transcoding with subtitle burn-in + - type: bind + source: /mnt/hdd/jellyfin/fonts + target: /usr/local/share/fonts/custom + read_only: true + restart: 'unless-stopped' + environment: + - JELLYFIN_PublishedServerUrl=http://trp.lan/ + # Optional - may be necessary for docker healthcheck to pass if running in host network mode + extra_hosts: + - 'host.docker.internal:host-gateway' \ No newline at end of file