I finally found a docker that works like i want.
I want to share my existed folder Musica , I do not want and empty /webdav folder inside my Music folder, I want to share my /Music folder and all his content/Files.
you need to edit to your needs this cocker-compose file:
Code
version: "2.1"
networks:
default:
external:
name: my-net
services:
webdav:
image: xama/nginx-webdav:latest
container_name: webdav
volumes:
# data
# - /srv/dev-disk-by-label-BPool/Musica:/data/download
- /srv/dev-disk-by-label-BPool/Musica:/var/webdav/public
# user and password
# - $HOME/docker/webdav/htpasswd:/opt/nginx/conf/htpasswd:ro
environment:
- WEBDAV_USERNAME=user
- WEBDAV_PASSWORD=password
- TZ=Europe/Madrid
ports:
- 83:80 # use your desired external port, eg:8888, I use 83 in this example
restart: unless-stopped
Alles anzeigen
Go to stack on portainer and deploy, must work, and you can see your shared folder and all files on it(www-dataww:
pasted-from-clipboard_autoscaled.jpg
PD: I add the user 33 = www-data to group users to avoid permission problems