app-store/apps/jellyfin/docker-compose.yml

44 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2022-07-28 17:46:12 +00:00
version: "3.7"
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:10.9.7
2022-07-28 17:46:12 +00:00
container_name: jellyfin
volumes:
- ${APP_DATA_DIR}/data/config:/config
2022-09-09 19:15:26 +00:00
- ${ROOT_FOLDER_HOST}/media/data:/media/data
2022-07-28 17:46:12 +00:00
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
2022-09-09 20:42:20 +00:00
- JELLYFIN_PublishedServerUrl=${APP_PROTOCOL:-http}://${APP_DOMAIN}/
2022-07-28 17:46:12 +00:00
restart: "unless-stopped"
ports:
- ${APP_PORT}:8096
networks:
- tipi_main_network
2022-09-09 19:13:13 +00:00
labels:
# Main
traefik.enable: true
traefik.http.middlewares.jellyfin-web-redirect.redirectscheme.scheme: https
traefik.http.services.jellyfin.loadbalancer.server.port: 8096
# Web
traefik.http.routers.jellyfin-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.jellyfin-insecure.entrypoints: web
traefik.http.routers.jellyfin-insecure.service: jellyfin
traefik.http.routers.jellyfin-insecure.middlewares: jellyfin-web-redirect
# Websecure
2022-09-09 19:13:13 +00:00
traefik.http.routers.jellyfin.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.jellyfin.entrypoints: websecure
traefik.http.routers.jellyfin.service: jellyfin
2022-09-09 19:13:13 +00:00
traefik.http.routers.jellyfin.tls.certresolver: myresolver
# Local domain
traefik.http.routers.jellyfin-local-insecure.rule: Host(`jellyfin.${LOCAL_DOMAIN}`)
traefik.http.routers.jellyfin-local-insecure.entrypoints: web
traefik.http.routers.jellyfin-local-insecure.service: jellyfin
traefik.http.routers.jellyfin-local-insecure.middlewares: jellyfin-web-redirect
# Local domain secure
traefik.http.routers.jellyfin-local.rule: Host(`jellyfin.${LOCAL_DOMAIN}`)
traefik.http.routers.jellyfin-local.entrypoints: websecure
traefik.http.routers.jellyfin-local.service: jellyfin
traefik.http.routers.jellyfin-local.tls: true