version: '3.8' services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin user: 1000:1000 network_mode: host volumes: - ${BASE_DATA_DIR}/jellyfin/config:/config - ${BASE_DATA_DIR}/jellyfin/cache:/cache - ${BASE_DATA_DIR}/jellyfin/users:/etc/jellyfin/users - ${MEDIA_DIR}:/mnt/media restart: unless-stopped extra_hosts: - host.docker.internal:host-gateway