version: "3.8" services: nginx: image: nginx:1.18.0 restart: always ports: - 80:80 volumes: - nginx-sshfs:/usr/share/nginx/html:rw volumes: nginx-fs: driver: local driver_opts: type: none o: bind device: ./data/nginx nginx-sshfs: #docker plugin install vieux/sshfs driver: vieux/sshfs:latest driver_opts: sshcmd: root@host.docker.internal:/sshfs password: root allow_other: ""