2025-01-19, 01:38 AM
(This post was last modified: 2025-01-19, 01:46 AM by 4r5hw45twh. Edited 3 times in total.)
(2025-01-19, 01:35 AM)theguymadmax Wrote: Fstab is the way to go.
I made some edits in my above post. Not sure if you saw them before your reply was posted. Ok, so how does this look for my own compose file? From what you just said, I wouldn't need to mount each folder on the drive like I do in my below compose file?
Code:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
network_mode: 'host'
volumes:
- /home/username/Dockers/Jellyfin/Config:/config
- /home/username/Dockers/Jellyfin/Cache:/cache
- type: bind
source: /media/username/Media/Jellyfin/Anime
target: /Anime
- type: bind
source: /media/username/Media/Jellyfin/TV Shows
target: /TVShows
- type: bind
source: /media/username/Media/Jellyfin/Movies
target: /Movies
read_only: true
restart: 'unless-stopped'
So, if that's the case, I guess my final compose file would be:
Code:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
network_mode: 'host'
volumes:
- /home/username/Dockers/Jellyfin/Config:/config
- /home/username/Dockers/Jellyfin/Cache:/cache
- type: bind
source: /media/username/Media/Jellyfin
target: /Media
read_only: true
restart: 'unless-stopped'
I didn't see the "device" portion on the guide link that you have in your compose file. Do I need that?
Also in the guide, I see, "To run the container in background add -d to the above command." Once I finally get a proper compose file, should I be adding the "-d" part or no?