From 534d5628432f4c4691be2802f6eafcc236ee8a85 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Thu, 3 Sep 2026 10:39:23 -0500 Subject: [PATCH] docs: standardize readme, gitignore and environment definitions --- .gitignore | 5 +++++ README.md | 39 ++++++++++++++++++++++++++++++++++++++- docker-compose.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index e69de29..b149d67 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,5 @@ +.env +config/ +cache/ +*.log +.DS_Store diff --git a/README.md b/README.md index b4c59c5..529ffec 100644 --- a/README.md +++ b/README.md @@ -1 +1,38 @@ -# homelab-jellyfin +# 🍿 Homelab Jellyfin + +Self-hosted media streaming system for movies, TV series, music, and home recordings. + +Part of the [homelab-core](https://github.com/kiskaadee/homelab-core) cluster ecosystem. + +--- + +## 🏗️ Architecture & Storage + +- **Container Image**: `jellyfin/jellyfin:latest` +- **Proxy**: Traefik (with rate limiting middleware attached to `proxy-net`) +- **Media Path**: `/media` (read-only bind mount) +- **Runtime Data**: `./config` and `./cache` (runtime app state, gitignored) + +--- + +## ⚙️ Environment Variables + +| Variable | Description | Default / Example | +| :--- | :--- | :--- | +| `JELLYFIN_DOMAIN` | Streaming Web UI FQDN | `jellyfin.arch-services.mywire.org` | +| `MEDIA_PATH` | Host path to media libraries | `/media` | +| `PUID` / `PGID` | User and Group execution IDs | `1000:1000` | + +--- + +## 🚀 Deployment + +### Via Orchestrator (`appctl`) +```bash +appctl up homelab-jellyfin +``` + +### Manual Deployment +```bash +docker compose up -d +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cf553ad --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,40 @@ +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_PATH}:/media:ro + restart: unless-stopped + networks: + - proxy + labels: + - "traefik.enable=true" + # HTTPS Router + - "traefik.http.routers.${SERVICE_NAME}.rule=Host(`${SERVICE_DOMAIN}`)" + - "traefik.http.routers.${SERVICE_NAME}.entrypoints=${HTTPS_ENTRYPOINT:-websecure}" + - "traefik.http.routers.${SERVICE_NAME}.tls=true" + - "traefik.http.routers.${SERVICE_NAME}.tls.certresolver=${CERT_RESOLVER:-letsencrypt}" + - "traefik.http.routers.${SERVICE_NAME}.middlewares=${SERVICE_NAME}-ratelimit@docker" + - "traefik.http.routers.${SERVICE_NAME}.service=${SERVICE_NAME}-svc" + + # Rate Limit Middleware + - "traefik.http.middlewares.${SERVICE_NAME}-ratelimit.ratelimit.average=${RATE_LIMIT_AVG:-100}" + - "traefik.http.middlewares.${SERVICE_NAME}-ratelimit.ratelimit.burst=${RATE_LIMIT_BURST:-50}" + + # HTTP to HTTPS Redirect + - "traefik.http.routers.${SERVICE_NAME}-red.rule=Host(`${SERVICE_DOMAIN}`)" + - "traefik.http.routers.${SERVICE_NAME}-red.entrypoints=${HTTP_ENTRYPOINT:-web}" + - "traefik.http.routers.${SERVICE_NAME}-red.middlewares=https-redirect@docker" + + # Service definition + - "traefik.http.services.${SERVICE_NAME}-svc.loadbalancer.server.port=8096" + +networks: + proxy: + name: ${PROXY_NETWORK:-proxy-net} + external: true