Docker/Jellyfin/docker-compose.yaml

26 lines
621 B
YAML

version: '3'
services:
jellyfin:
image: jellyfin/jellyfin:latest
restart: always
#extra_hosts:
# - hostname:ip # add this if smb share is mounted with hostname
ports:
- 1900:1900
- 7359:7359
- ${JELLYFIN_PORT_HTTP}:8096
- ${JELLYFIN_PORT_HTTPS}:8920
volumes:
- ${JELLYFIN_CONFIG_DIR_}:/cache
- ${JELLYFIN_CACHE_DIR_}:/config:r
- nas-drive:/data/media:ro
env_file:
- stack.env
volumes:
nas-drive:
driver_opts:
type: cifs
o: username=${SAMBA_USERNAME},password=${SAMBA_PASSWORD},vers=3.0
device: ${JELLYFIN_DATA_DIR_}