add docker stacks
This commit is contained in:
34
Jellyfin/docker-compose.yaml
Normal file
34
Jellyfin/docker-compose.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
jellyfin:
|
||||
image: jellyfin/jellyfin:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 1900:1900
|
||||
- 7359:7359
|
||||
- ${JELLYFIN_PORT_HTTP}:8096
|
||||
- ${JELLYFIN_PORT_HTTPS}:8920
|
||||
volumes:
|
||||
- ./cache:/cache
|
||||
- ${JELLYFIN_DIR}:/config:r
|
||||
- ${JELLYFIN_MEDIA_DIR}:/data/media:ro
|
||||
env_file:
|
||||
- stack.env
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
|
||||
# HTTP redirection to HTTPS
|
||||
- traefik.http.routers.jellyfin.entrypoints=web
|
||||
- traefik.http.routers.jellyfin.rule=Host(`${JELLYFIN_URL}`)
|
||||
- traefik.http.middlewares.jellyfin-https-redirect.redirectscheme.scheme=https
|
||||
- traefik.http.routers.jellyfin.middlewares=jellyfin-https-redirect
|
||||
|
||||
# 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
|
||||
10
Jellyfin/stack.env
Normal file
10
Jellyfin/stack.env
Normal file
@@ -0,0 +1,10 @@
|
||||
JELLYFIN_PORT_HTTP=8096
|
||||
JELLYFIN_PORT_HTTPS=8920
|
||||
JELLYFIN_URL=jellyfin.example.com
|
||||
|
||||
JELLYFIN_DIR=/path/to/jelly
|
||||
JELLYFIN_MEDIA_DIR=/path/to/media
|
||||
|
||||
TZ=America/Toronto
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
Reference in New Issue
Block a user