From dab09222b6a682d059a2aa765381a164818c3292 Mon Sep 17 00:00:00 2001 From: alistair Date: Thu, 30 Mar 2023 20:23:30 +0100 Subject: [PATCH] transferred setings from the existing docker run command --- jellyfin/docker-compose.yml | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/jellyfin/docker-compose.yml b/jellyfin/docker-compose.yml index bffd3a1..852d07f 100755 --- a/jellyfin/docker-compose.yml +++ b/jellyfin/docker-compose.yml @@ -1,19 +1,18 @@ -version: '3.5' -services: - jellyfin: - image: jellyfin/jellyfin - container_name: jellyfin - user: uid:gid - network_mode: 'host' - volumes: - - /path/to/config:/config - - /path/to/cache:/cache - - /path/to/media:/media - - /path/to/media2:/media2:ro - 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" \ No newline at end of file +version: '3.5' +services: + jellyfin: + image: jellyfin/jellyfin + container_name: jellyfin + user: 1000:1000 + network_mode: 'host' + volumes: + - /media/main/media/tools/docker/volumes/jellyfin/config:/config + - /media/main/media/tools/docker/volumes/jellyfin/cache:/cache + - /media/main/media:/media + 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" \ No newline at end of file