

To run the container in background add -d to the above command. Then while in the same folder as the docker-compose.yml run: docker-compose up # Optional - alternative address used for autodiscovery If there are submounts within the main mount, the submounts are read-write capable.Ĭreate a docker-compose.yml file with the following contents: version: "3.5" There is currently an issue with read-only mounts in Docker. mount type=bind,source=/path/to/media2,target=/media2,readonly Multiple media libraries can be bind mounted if needed: -mount type=bind,source=/path/to/media1,target=/media1 mount type=bind,source=/path/to/media,target=/media \īind Mounts are needed to pass folders from the host OS to the container OS whereas volumes are maintained by Docker and can be considered easier to backup and control by external programs.įor a simple setup, it's considered easier to use Bind Mounts instead of volumes. volume /path/to/cache:/cache \ # Alternatively -volume jellyfin-cache:/cache volume /path/to/config:/config \ # Alternatively -volume jellyfin-config:/config Using Docker command line interface: docker run -d \

Using host networking ( -net=host) is optional but required in order to use DLNA.

Bridge mode will be used if host mode is omitted. The default network mode for Docker is bridge mode.
