Files

53 lines
1.1 KiB
YAML
Raw Permalink Normal View History

version: '3.8'
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
volumes:
- /path/to/config:/config
- /path/to/cache:/cache
- /path/to/media:/media
environment:
- JELLYFIN_PublishedServerUrl=http://your-server:8096
restart: unless-stopped
networks:
- jellyfin
# IMPORTANT: No ports exposed! Only accessible via Caddy
xbox-filter:
build: .
container_name: jellyfin-xbox-filter
depends_on:
- jellyfin
# No ports exposed - only Caddy talks to this
environment:
- JELLYFIN_URL=http://jellyfin:8096
restart: unless-stopped
networks:
- jellyfin
caddy:
image: caddy:2-alpine
container_name: jellyfin-caddy
depends_on:
- jellyfin
- xbox-filter
ports:
- "8096:8096" # Public-facing port
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
restart: unless-stopped
networks:
- jellyfin
networks:
jellyfin:
driver: bridge
volumes:
caddy_data:
caddy_config: