9 Commits

Author SHA1 Message Date
ef7397f0ba Merge pull request 'Add healthcheck, backup support, and update documentation' (#5) from yaup/jellyfin:pr/healthcheck-backup-improvements-v2 into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #5
Reviewed-by: ammaratef45 <ammaratef45@proton.me>
2026-01-22 01:11:37 +00:00
cde0595c77 Add healthcheck and backup support
- Enable healthcheck using Jellyfin's /health endpoint
- Add backup-bot-two for backups
- Expand .env.sample with backup configuration options
2026-01-21 13:53:38 -05:00
24bb1e7ab7 publish 0.5.0+10.11.1 release (#4)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
## Overview

Bumps to [latest Jellyfin release v10.11.1](https://github.com/jellyfin/jellyfin/releases/tag/v10.11.1)

I have tested this on my own Abra deployment of Jellyfin 

## Description

I would love to implement a health-check as well, but for now I want to familiarise myself with the process of releasing recipe updates 💯
So if someone can tell me what else this PR is missing to get this moving, that'd be amazing ^_^

Co-authored-by: Andrew Salib <andrew.salib@kasada.io>
Reviewed-on: #4
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2025-11-04 23:39:47 +00:00
3wc
9105f0b391 chore: publish 0.4.2+10.10.5 release
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2025-01-25 15:23:40 -05:00
df32c88a72 Update .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2025-01-08 10:09:13 -08:00
e0b3e9136d add readme section for sonarr and radarr
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-02 12:43:39 -08:00
bd20fed151 sonarr and radarr support
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-02 00:37:42 -08:00
3wc
c1fb6404db chore: publish 0.4.1+10.10.1 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2024-11-16 09:51:13 -05:00
93a02d6dd0 chore: publish 0.4.0+10.10.0 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2024-10-30 12:50:42 +05:00
6 changed files with 180 additions and 50 deletions

View File

@ -33,7 +33,7 @@ steps:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
- toolshed/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -1,11 +1,32 @@
TYPE=jellyfin
# Jellyfin Co-op Cloud Recipe Configuration
# ==========================================
# Required Settings
TYPE=jellyfin
DOMAIN=jellyfin.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.jellyfin.example.com`'
# Compose Files
# Add compose.media_volumes.yml for Sonarr/Radarr integration
COMPOSE_FILE="compose.yml"
# Optional: Additional domains (uncomment to enable)
# EXTRA_DOMAINS=|| Host(`www.jellyfin.example.com`)
# Let's Encrypt environment (staging or production)
LETS_ENCRYPT_ENV=production
# Set to an existing path on the host, and define a path inside the container
# Media Volume Configuration
# ==========================
# Mount a local folder containing your media files
# Example: /mnt/media/movies:/media
EXTRA_VOLUME=/dev/null:/tmp/.dummy
# Sonarr/Radarr Integration (use with compose.media_volumes.yml)
# Uncomment these when using the media volumes overlay
# movies_volume=radarr_media
# shows_volume=sonarr_media
# Backup Configuration
# ====================
# Enable/disable backups (uses backup-bot-two or abra)
# ENABLE_BACKUPS=true

6
.gitignore vendored
View File

@ -1 +1,5 @@
.envrc
.env
.abra/
*.swp
*.swo
*~

136
README.md
View File

@ -1,35 +1,129 @@
# jellyfin
# Jellyfin
> One line description of the recipe
> The Free Software Media System
<!-- metadata -->
* **Category**: Apps
* **Status**: 1, alpha
* **Image**: [`jellyfin//jellyfin`](https://hub.docker.com/r/jellyfin/jellyfin), 4, upstream
* **Healthcheck**: No
* **Backups**: No
* **Email**: No
* **Tests**: No
* **SSO**: No
* **Status**: 3, Beta
* **Image**: [`jellyfin/jellyfin`](https://hub.docker.com/r/jellyfin/jellyfin), 4, upstream
* **Healthcheck**: Yes
* **Backups**: Yes
<!-- endmetadata -->
## Quick start
Jellyfin is a free and open-source media server that lets you collect, manage, and stream your media. This recipe deploys Jellyfin with Traefik integration, health monitoring, and optional automated backups.
* `abra app new jellyfin --secrets`
* `abra app config <app-name>`
* `abra app deploy <app-name>`
## Quick Start
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
```bash
# Create a new Jellyfin instance
abra app new jellyfin --secrets
# Configure your instance
abra app config <app-name>
## Adding Media
You can mount a folder of your choice to jellyfin by editing this line after running `abra app config ${your jelllyfin url}`
```
EXTRA_VOLUME=/home/$USER/media:/media/ # replace /home/$USER/media with folder of your choice
# Deploy
abra app deploy <app-name>
```
Then during the jellyfin setup wizard use this folder as the path for your jellyfin library.
## Configuration
### Media Volumes
Configure media access by editing `EXTRA_VOLUME` in your app configuration:
```bash
# Single media folder
EXTRA_VOLUME=/mnt/media:/media
# Multiple folders (use docker-compose syntax)
EXTRA_VOLUME=/mnt/movies:/movies
```
During Jellyfin's initial setup wizard, add your mounted paths as media libraries.
### Backup Configuration
This recipe supports automated backups using [backup-bot-two](https://git.coopcloud.tech/coop-cloud/backup-bot-two) or `abra` backup commands.
#### Enabling Backups
Backups are enabled by default. To disable them, set:
```bash
ENABLE_BACKUPS=false
```
#### What Gets Backed Up
* **Config volume** (`/config`): Jellyfin configuration, databases, metadata, and plugins
* **Cache volume**: Excluded (transcoding cache, not needed in backups)
#### What's Not Backed Up
Media files are not included in backups. Back up your media library separately or ensure you can re-download content if needed.
## Integration with Media Stack
Jellyfin works well with the *arr stack for automated media management:
| Service | Purpose |
| --- | --- |
| [qBittorrent](https://git.coopcloud.tech/coop-cloud/qbittorrent) | Torrent client for downloads |
| [Prowlarr](https://git.coopcloud.tech/coop-cloud/prowlarr) | Indexer manager for all *arr apps |
| [Sonarr](https://git.coopcloud.tech/coop-cloud/sonarr) | TV show monitoring and download |
| [Radarr](https://git.coopcloud.tech/coop-cloud/radarr) | Movie monitoring and download |
| [Jellyseerr](https://git.coopcloud.tech/coop-cloud/jellyseerr) | Request management and discovery UI |
### Shared Media Volumes
When integrating with Sonarr/Radarr, use `compose.media_volumes.yml` to share their media volumes:
```bash
COMPOSE_FILE="compose.yml:compose.media_volumes.yml"
movies_volume=radarr_media
shows_volume=sonarr_media
```
This mounts Radarr's movies and Sonarr's shows directly into Jellyfin at `/movies` and `/shows`.
## Hardware Transcoding
For hardware-accelerated transcoding, you may need to pass through GPU devices. Create a custom compose overlay:
```yaml
# compose.gpu.yml
services:
app:
devices:
- /dev/dri:/dev/dri # Intel QSV / VAAPI
```
Then add it to your configuration:
```bash
COMPOSE_FILE="compose.yml:compose.gpu.yml"
```
## Troubleshooting
### Health Check Failures
The health check uses Jellyfin's `/health` endpoint. If it fails:
1. Check logs: `abra app logs <app-name>`
2. Verify the container is running: `abra app ps <app-name>`
3. Ensure port 8096 isn't blocked internally
### Permission Issues
If Jellyfin can't access media files:
1. Check volume mount permissions
2. Ensure the container user has read access to media directories
3. Verify SELinux/AppArmor policies if applicable
## License
Jellyfin is licensed under [GPL-2.0](https://github.com/jellyfin/jellyfin/blob/master/LICENSE).

14
compose.media_volumes.yml Normal file
View File

@ -0,0 +1,14 @@
---
services:
app:
volumes:
- media_movies:/movies
- media_shows:/shows
volumes:
media_movies:
name: ${movies_volume}
external: true
media_shows:
name: ${shows_volume}
external: true

View File

@ -1,41 +1,38 @@
---
version: "3.8"
services:
app:
image: jellyfin/jellyfin:10.9.11
image: jellyfin/jellyfin:10.11.1
ports:
- "8096:8096"
environment:
- JELLYFIN_PublishedServerUrl=https://${DOMAIN}
volumes:
- config:/config
- cache:/cache
- ${EXTRA_VOLUME:-/dev/null:/tmp/.dummy}
networks:
- proxy
volumes:
- jellyfin_config:/config
- jellyfin_cache:/cache
- ${EXTRA_VOLUME}
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8096"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)${EXTRA_DOMAINS}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=0.3.1+10.9.11"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8096"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV:-production}"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8096"
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
- "backupbot.backup.volumes.cache=false"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8096/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
jellyfin_config:
jellyfin_cache:
config:
cache:
networks:
proxy: