Add private folder mount to Jellyfin media server
- Mount /home/hoborg/private as /media/private for shared access with copyparty - Enable read-only access to private media files uploaded via copyparty WebDAV - Maintain consistency between file server and media server folder access 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,43 +2,43 @@
|
|||||||
# Deploy with: sudo mkdir -p /opt/docker/jellyfin && sudo cp config/docker/jellyfin/docker-compose.yml /opt/docker/jellyfin/
|
# Deploy with: sudo mkdir -p /opt/docker/jellyfin && sudo cp config/docker/jellyfin/docker-compose.yml /opt/docker/jellyfin/
|
||||||
# Start with: cd /opt/docker/jellyfin && sudo docker-compose up -d
|
# Start with: cd /opt/docker/jellyfin && sudo docker-compose up -d
|
||||||
|
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
jellyfin:
|
jellyfin:
|
||||||
image: jellyfin/jellyfin:latest
|
image: jellyfin/jellyfin:latest
|
||||||
container_name: jellyfin
|
container_name: jellyfin
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# User and group IDs to match host user (hoborg)
|
# User and group IDs to match host user (hoborg)
|
||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
environment:
|
environment:
|
||||||
- JELLYFIN_PublishedServerUrl=https://ak-homelab.duckdns.org/media
|
- JELLYFIN_PublishedServerUrl=https://ak-homelab.duckdns.org/media
|
||||||
|
|
||||||
# Network mode for better performance and hardware acceleration
|
# Network mode for better performance and hardware acceleration
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
|
||||||
# Volume mounts - using same folders as Copyparty
|
# Volume mounts - using same folders as Copyparty
|
||||||
volumes:
|
volumes:
|
||||||
# Jellyfin configuration and data
|
# Jellyfin configuration and data
|
||||||
- /opt/docker/jellyfin/config:/config
|
- /opt/docker/jellyfin/config:/config
|
||||||
- /opt/docker/jellyfin/cache:/cache
|
- /opt/docker/jellyfin/cache:/cache
|
||||||
|
|
||||||
# Media folders (shared with Copyparty)
|
# Media folders (shared with Copyparty)
|
||||||
- /home/hoborg/Music:/media/music:ro
|
- /home/hoborg/Music:/media/music:ro
|
||||||
- /home/hoborg/Videos:/media/videos:ro
|
- /home/hoborg/Videos:/media/videos:ro
|
||||||
|
- /home/hoborg/Pictures:/media/pictures:ro
|
||||||
- /home/hoborg/shared:/media/shared:ro
|
- /home/hoborg/shared:/media/shared:ro
|
||||||
|
- /home/hoborg/private:/media/private:ro
|
||||||
|
|
||||||
# Additional media folders if they exist
|
# Additional media folders if they exist
|
||||||
# - /home/hoborg/Movies:/media/movies:ro
|
# - /home/hoborg/Movies:/media/movies:ro
|
||||||
# - /home/hoborg/TV:/media/tv:ro
|
# - /home/hoborg/TV:/media/tv:ro
|
||||||
|
|
||||||
# Device access for hardware acceleration (Intel/AMD GPU)
|
# Device access for hardware acceleration (Intel/AMD GPU)
|
||||||
devices:
|
devices:
|
||||||
- /dev/dri:/dev/dri
|
- /dev/dri:/dev/dri
|
||||||
|
|
||||||
# Memory limits for container stability
|
# Memory limits for container stability
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
@@ -50,4 +50,4 @@ services:
|
|||||||
# Optional: Create a custom network if not using host networking
|
# Optional: Create a custom network if not using host networking
|
||||||
# networks:
|
# networks:
|
||||||
# jellyfin:
|
# jellyfin:
|
||||||
# driver: bridge
|
# driver: bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user