Files
kiskaadee 9c81b121a5 fix(workloads): resolve PR #6 review findings CR-01, CR-02, and CR-03
- gitea_runner/docker-compose.yml: replace broken https://gitea.${DOMAIN} fallback with internal http://gitea:3000 (CR-01)

- jellyfin/docker-compose.yml: align Traefik router, middleware, and service label prefixes to ${CONTAINER_NAME:-jellyfin} (CR-02)

- armonia/Dockerfile.dashboard: pin pnpm via PNPM_VERSION=9.15.4 instead of floating pnpm@latest (CR-03)
2026-11-18 20:57:01 -05:00

41 lines
1.8 KiB
YAML

services:
jellyfin:
image: jellyfin/jellyfin:${IMAGE_TAG:-latest}
container_name: ${CONTAINER_NAME:-jellyfin}
user: "${PUID:-1000}:${PGID:-1000}"
environment:
- TZ=${TZ:-UTC}
volumes:
- ./config:/config
- ./cache:/cache
- ./media:/media:ro
restart: unless-stopped
networks:
- proxy-net
labels:
- "traefik.enable=true"
# HTTPS Router
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}.rule=Host(`${SERVICE_DOMAIN}`)"
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}.entrypoints=${HTTPS_ENTRYPOINT:-websecure}"
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}.tls=true"
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}.tls.certresolver=${CERT_RESOLVER:-myresolver}"
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}.middlewares=${CONTAINER_NAME:-jellyfin}-ratelimit@docker"
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}.service=${CONTAINER_NAME:-jellyfin}-svc"
# Rate Limit Middleware
- "traefik.http.middlewares.${CONTAINER_NAME:-jellyfin}-ratelimit.ratelimit.average=${RATE_LIMIT_AVG:-100}"
- "traefik.http.middlewares.${CONTAINER_NAME:-jellyfin}-ratelimit.ratelimit.burst=${RATE_LIMIT_BURST:-50}"
# HTTP to HTTPS Redirect
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}-red.rule=Host(`${SERVICE_DOMAIN}`)"
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}-red.entrypoints=${HTTP_ENTRYPOINT:-web}"
- "traefik.http.routers.${CONTAINER_NAME:-jellyfin}-red.middlewares=${HTTPS_REDIRECT_MIDDLEWARE:-https-redirect@docker}"
# Service definition
- "traefik.http.services.${CONTAINER_NAME:-jellyfin}-svc.loadbalancer.server.port=8096"
networks:
proxy-net:
name: ${PROXY_NETWORK:-proxy-net}
external: true