Hello, I’m new to docker and have hit a road block. I’m on a rp4 running Ubuntu server and deploying these containers through Portainer if that matters. I’m trying to give a torrent client access to a network drive.
I tried to mount it directly to the container:
volumes:
BNBNAS:
driver_opts:
type: cifs
o: "username=xxxx,password=xxxx,vers=3.0"
device: "//${LAN address}/Movies"
qbittorrent:
image: "lscr.io/linuxserver/qbittorrent:libtorrentv1"
container_name: qbittorrent2
network_mode: "service:gluetun"
environment:
- PUID=1000
- PGID=1003
- WEBUI_PORT=8080
volumes:
- /docker/qbittorrent/config:/config
- BNBNAS/Movies:/downloads
- BNBNAS/Temp:/incomplete
restart: unless-stopped
And received this error:
failed to deploy a stack: parsing /data/compose/34/docker-compose.yml: invalid interpolation format for volumes.BNBNAS.driver_opts.device. You may need to escape any $ with another $. //${LAN ip}/Movies
I also tried adding it as a volume in Portainer and referencing it:
qbittorrent:
services:
image: "lscr.io/linuxserver/qbittorrent:libtorrent"
container_name: qbittorrent2
network_mode: "service:gluetun"
environment:
- PUID=1000
- PGID=1003
- WEBUI_PORT=8080
volumes:
- /docker/qbittorrent/config:/config
- BNBNAS/Movies:/downloads
- BNBNAS/Temp:/incomplete
volumes:
BNBNAS:
external: true
Which gives me this error:
Deployment error
failed to deploy a stack: validating /data/compose/38/docker-compose.yml: (root) Additional property qbittorrent is not allowed
Any help would be greatly appreciated.