From 629fbe0181c9324b3aa112161afa2d8e2e0a9a6b Mon Sep 17 00:00:00 2001 From: borgal Date: Mon, 7 Nov 2022 21:50:15 +0100 Subject: [PATCH] =?UTF-8?q?webdav=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webdav/.env.sample | 2 ++ webdav/docker-compose.yml | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 webdav/.env.sample create mode 100644 webdav/docker-compose.yml diff --git a/webdav/.env.sample b/webdav/.env.sample new file mode 100644 index 0000000..7aeba8a --- /dev/null +++ b/webdav/.env.sample @@ -0,0 +1,2 @@ +NFS_SERVER=192.168.0.xxx +Photos=/mnt/pool1/pfad/zu/dem/Ordner diff --git a/webdav/docker-compose.yml b/webdav/docker-compose.yml new file mode 100644 index 0000000..e3aa194 --- /dev/null +++ b/webdav/docker-compose.yml @@ -0,0 +1,24 @@ +version: "3" +services: + webdav: + container_name: webdav + image: ugeek/webdav:amd64-alpine + network_mode: bridge + ports: + - "8014:80" + volumes: + # data + - $HOME/Download:/data/download + - Photos:/data/Photos + # user and password + - ./user/htpasswd:/opt/nginx/conf/htpasswd:ro + restart: always + +volumes: + Photos: + name: Photos + driver: local + driver_opts: + type: nfs + o: addr=${NFS_SERVER},rw + device: ":${Photos}"