I only use Docker compose, in Openmediavault’s plugin for it, and my knowledge of how Docker works is only growing at a modest pace…
I’m now investigating how to get a Jellyfin container up and running, and this seems a logical starting point: Container | Jellyfin
But a few lines are other than what I’m used to:
volumes:
- /path/to/config:/config
- /path/to/cache:/cache
- type: bind
source: /path/to/media
target: /media
- type: bind
source: /path/to/media2
target: /media2
read_only: true
I’m only used to lines like - /path/to/config:/config
, so I started googling about this ‘bind type’. As far as I can find, what I’ve been using have always been ‘mount binds’, and this article wants to make me believe that the two syntax types actually result in the same thing: Warp: How To Create Bind Mounts With Docker Compose Volumes
But it seems so peculiar that two different types of syntax would be used in the same example. So I wanted to double check that…
Is - /path/to/media2:/media2
the same as
- type: bind
source: /path/to/media2
target: /media2
?