2024-06-18, 07:02 PM
(This post was last modified: 2024-06-18, 07:11 PM by pol77. Edited 2 times in total.)
Thank you very much!
I have registered on the QNAP forum.
When I created the container I used the QNAP Container Station GUI, but now I'm ttrying to make a yaml file configuration, such as the one you included above...
This is what I have so far, that may work, according to various sources online:
When I try to validate it, I get the error message:
Invalid Compose YAML Code
validate compose config failed: operateApp action [convert] failed: exit status 15: volumes must be a mapping
I also tried the volumes part like this:
But I got the same error.
I guess I need to map the volumes with a different command. Any ideas?
I have registered on the QNAP forum.
When I created the container I used the QNAP Container Station GUI, but now I'm ttrying to make a yaml file configuration, such as the one you included above...
This is what I have so far, that may work, according to various sources online:
Code:
version: "3.9"
services:
jellyfin:
image: jellyfin/jellyfin
container_name: PolFlix
user: 1000:1000
network_mode: "host"
devices:
- /dev/nvidia0:/dev/nvidia0
- /dev/nvidiactl:/dev/nvidiactl
/dev/nvidia-uvm:/dev/nvidia-uvm
environment:
- VERSION=docker
- PATH=/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
ports:
- 32666:8096
- 32667:8920
volumes:
- type: bind
source: /Container/jellyfin/config
target: /config
- type: bind
source: /Container/jellyfin/cache
target: /cache
- type: bind
source: /Storage/Movies
target: /Movies
read_only: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities:
- gpu
restart: unless-stopped
When I try to validate it, I get the error message:
Invalid Compose YAML Code
validate compose config failed: operateApp action [convert] failed: exit status 15: volumes must be a mapping
I also tried the volumes part like this:
Code:
volumes:
- /Container/jellyfin/config:/config
- /Container/jellyfin/cache:/cache
- /Storage/Movies:/Movies:ro
I guess I need to map the volumes with a different command. Any ideas?