forked from ethibox/awesome-stacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjellyfin.yml
22 lines (20 loc) · 798 Bytes
/
jellyfin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# DOMAIN=example.com docker stack deploy -c jellyfin.yml jellyfin
services:
web:
image: jellyfin/jellyfin:${VERSION:-latest}
volumes:
- ${VOLUME_PATH}config:/config
- ${VOLUME_PATH}cache:/cache
- ${VOLUME_PATH}media:/media
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.jellyfin-${NUMBER:-1}.rule=Host(`${DOMAIN:-jellyfin.localhost}`)
- traefik.http.routers.jellyfin-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.jellyfin-${NUMBER:-1}.service=jellyfin-${NUMBER:-1}
- traefik.http.routers.jellyfin-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.jellyfin-${NUMBER:-1}.loadbalancer.server.port=8096
networks:
default:
external: true
name: traefik-net