docs: standardize readme, gitignore and environment definitions

This commit is contained in:
kiskaadee committed 2026-09-03 10:39:23 -05:00
1 parent bb35361ca7
commit 534d562843
3 files changed
+83 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
.env
config/
cache/
*.log
.DS_Store
+38 -1
View File
@@ -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
```
+40
View File
@@ -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