services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin # Optional - specify the uid and gid you would like Jellyfin to use instead of root user: 1000:1000 ports: - 8096:8096/tcp - 7359:7359/udp volumes: - ./config:/config - ./cache:/cache - type: bind source: ./media target: /media #- type: bind #source: /path/to/media2 #target: /media2 #read_only: true # Optional - extra fonts to be used during transcoding with subtitle burn-in #- type: bind # source: /path/to/fonts # target: /usr/local/share/fonts/custom # read_only: true restart: 'unless-stopped' # Optional - alternative address used for autodiscovery #environment: #- JELLYFIN_PublishedServerUrl=http://example.com # Optional - may be necessary for docker healthcheck to pass if running in host network mode extra_hosts: - 'host.docker.internal:host-gateway' # networks: # - web #networks: # web: # external: true