| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  | version: "3.7"
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   jellyfin:
 | 
					
						
							| 
									
										
										
										
											2024-02-27 20:02:23 +00:00
										 |  |  |     image: lscr.io/linuxserver/jellyfin:10.8.13
 | 
					
						
							| 
									
										
										
										
											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:
 | 
					
						
							| 
									
										
										
										
											2023-10-12 18:06:23 +00:00
										 |  |  |       # 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}`)
 | 
					
						
							| 
									
										
										
										
											2023-10-12 18:06:23 +00:00
										 |  |  |       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
 | 
					
						
							| 
									
										
										
										
											2023-10-12 18:06:23 +00:00
										 |  |  |       # 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
 |