Network mount in docker compose

Hi, everyone!

I’m really troubling with mount network share in compose file
How to do it right?

version: ‘3.7’
services:

nginx:
build: .
container_name: nginx
hostname: nginx
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:

  • myshare:/var/log/nginx

volumes:
myshare:
driver_opts:
type: nfs
o: “username=netshare,password=netshare,rw”
device: “\\storage\storage”

PLZ help

There is an example of an nfs mount in the docs for the compose file.

Are you really speaking about nfs? This looks like a Windows share to me.