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

  xbox-filter:
    build: .
    container_name: jellyfin-xbox-filter
    depends_on:
      - jellyfin
    ports:
      - "8096:8096"
    environment:
      - JELLYFIN_URL=http://jellyfin:8096
    restart: unless-stopped
    networks:
      - jellyfin

networks:
  jellyfin:
    driver: bridge
