Hello, I have a Linux server that contains a public folder, the address is //192.168.1.214/winthor-teste/xml_mimo/mercado_livre
This part has no authentication. I’m trying to map this folder in Docker so that n8n has access to the xmls that are saved on server 192.168.1.214 , but I’ve tried everything I can to create a volume and map this folder but I can’t.
Error response from daemon: error while mounting volume ‘/var/lib/docker/volumes/n8n-docker-caddy_xml_mimo/_data’: failed to mount local volume: mount //192.168.1.214/winthor-teste/xml_mimo/mercado_livre:/var/lib/docker/volumes/n8n-docker-caddy_xml_mimo/_data: invalid argument
docker-compose.yaml
n8n:
image: n8nio/n8n:${VERSION}
restart: always
ports:
- 5678:5678
environment:
...
links:
- postgres
volumes:
- n8n_data:/home/node/.n8n
- ./n8n-nodes-oraclesql:/.n8n/custom/n8n-nodes-oraclesql
- ./local_files:/files
- xml_mimo:/xml_mimo/mercado_livre:ro
build:
context: .
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
volumes:
xml_mimo:
driver: local
driver_opts:
type: cifs
device: "//192.168.1.214/winthor-teste/xml_mimo/mercado_livre"
caddy_data:
external: true
n8n_data:
external: true
db_data:
external: true
This way I can even create the volume but the volume does not point to the shared folder, so the volume is empty and the xmls that are saved on the server 192.168.1.214 do not appear
volumes:
- n8n_data:/home/node/.n8n
- ./n8n-nodes-oraclesql:/.n8n/custom/n8n-nodes-oraclesql
- ./local_files:/files
- xml_mimo:/xml_mimo/mercado_livre
build:
context: .
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
volumes:
xml_mimo:
driver_opts:
type: cifs
device: "//192.168.1.214/winthor-teste/xml_mimo/mercado_livre"
name: xml_mimo