Updating Jellyfin stack
This commit is contained in:
parent
ed162ff819
commit
8ee56130d3
|
|
@ -3,43 +3,24 @@ version: '3'
|
||||||
services:
|
services:
|
||||||
jellyfin:
|
jellyfin:
|
||||||
image: jellyfin/jellyfin:latest
|
image: jellyfin/jellyfin:latest
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
|
#extra_hosts:
|
||||||
|
# - hostname:ip # add this if smb share is mounted with hostname
|
||||||
ports:
|
ports:
|
||||||
- 1900:1900
|
- 1900:1900
|
||||||
- 7359:7359
|
- 7359:7359
|
||||||
- ${JELLYFIN_PORT_HTTP}:8096
|
- ${JELLYFIN_PORT_HTTP}:8096
|
||||||
- ${JELLYFIN_PORT_HTTPS}:8920
|
- ${JELLYFIN_PORT_HTTPS}:8920
|
||||||
volumes:
|
volumes:
|
||||||
- ./cache:/cache
|
- ${JELLYFIN_CONFIG_DIR}:/cache
|
||||||
- ${JELLYFIN_DIR}:/config:r
|
- ${JELLYFIN_CACHE_DIR}:/config:r
|
||||||
- ${JELLYFIN_MEDIA_DIR}:/data/media:ro
|
- nas-drive:/data/media:ro
|
||||||
env_file:
|
env_file:
|
||||||
- stack.env
|
- stack.env
|
||||||
labels:
|
|
||||||
- traefik.enable=true
|
|
||||||
|
|
||||||
# HTTP redirection to HTTPS
|
volumes:
|
||||||
- traefik.http.routers.jellyfin.entrypoints=web
|
nas-drive:
|
||||||
- traefik.http.routers.jellyfin.rule=Host(`${JELLYFIN_URL}`)
|
driver_opts:
|
||||||
- traefik.http.middlewares.jellyfin-https-redirect.redirectscheme.scheme=https
|
type: cifs
|
||||||
- traefik.http.routers.jellyfin.middlewares=jellyfin-https-redirect
|
o: username=${SAMBA_USERNAME},password=${SAMBA_PASSWORD},vers=3.0
|
||||||
|
device: ${JELLYFIN_DATA_DIR}
|
||||||
# HTTPS config
|
|
||||||
- traefik.http.routers.jellyfin-secure.entrypoints=websecure
|
|
||||||
- traefik.http.routers.jellyfin-secure.rule=Host(`${JELLYFIN_URL}`)
|
|
||||||
- traefik.http.routers.jellyfin-secure.tls=true
|
|
||||||
- traefik.http.routers.jellyfin-secure.tls.certresolver=myresolver
|
|
||||||
- traefik.http.services.jellyfin-secure.loadbalancer.server.port=8096
|
|
||||||
|
|
||||||
- traefik.docker.network=proxy
|
|
||||||
|
|
||||||
- homepage.group=Media
|
|
||||||
- homepage.name=Jellyfin
|
|
||||||
- homepage.icon=jellyfin.png
|
|
||||||
- homepage.href=${JELLYFIN_URL}
|
|
||||||
- homepage.description=Movies
|
|
||||||
- homepage.widget.type=jellyfin
|
|
||||||
- homepage.widget.url=${JELLYFIN_URL}
|
|
||||||
- homepage.widget.key=${JELLYFIN_API_KEY}
|
|
||||||
- homepage.widget.enableBlocks=true
|
|
||||||
- homepage.widget.enableNowPlaying=false
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
|
PUID=1000
|
||||||
|
PGID=1000
|
||||||
|
TZ=America/Toronto
|
||||||
JELLYFIN_PORT_HTTP=8096
|
JELLYFIN_PORT_HTTP=8096
|
||||||
JELLYFIN_PORT_HTTPS=8920
|
JELLYFIN_PORT_HTTPS=8920
|
||||||
JELLYFIN_URL=jellyfin.example.com
|
JELLYFIN_CONFIG_DIR=/home/portainer/jellyfin/config
|
||||||
JELLYFIN_API_KEY=YourApiKey
|
JELLYFIN_CACHE_DIR=/home/portainer/jellyfin/cache
|
||||||
|
JELLYFIN_DATA_DIR=
|
||||||
JELLYFIN_DIR=/path/to/jelly
|
SAMBA_USERNAME=
|
||||||
JELLYFIN_MEDIA_DIR=/path/to/media
|
SAMBA_PASSWORD=
|
||||||
|
|
||||||
TZ=America/Toronto
|
|
||||||
PUID=1000
|
|
||||||
PGID=1000
|
|
||||||
Loading…
Reference in New Issue