Docker compose: mount samba volume

Ok @meyay , you are very very Kind and i’m an idiot (i need to read the documentation better).
@rimelek I’m sorry because, actually, the problem, apparently, is in the connection or in the username/password but the error is always “wrong parameters”.

I have create, in another server, a new samba connection and now function with this configuration:

version: "3.8"

services:
  web:
    build:
      dockerfile: ./Dockerfile
    ports:
      - "80:80"
    environment:
      - FlexDebug=on
    volumes:
      - data:/var/www/example

volumes:
  data:
    driver: local
    driver_opts:
      type: cifs
      device: "//192.168.1.17/share"
      o: "username=XXX,password=YYY,uid=1000,gid=1000"

I thank you again very much for the time you have dedicated to me; very kind.

1 Like