A secure, fast, and lightweight WebDAV Server, built with lighttpd.
$ docker run -d \
--name webdav \
-p 80:80 \
-v /path/to/your/data:/var/www/html/webdav \
-e USERNAME=<your-username> \
-e PASSWORD=<your-password> \
ghcr.io/fkropfhamer/docker-zotero-webdav:mainReplace /path/to/your/data with the actual path to the directory you want to serve, and set the desired USERNAME and PASSWORD for authentication.
- Create a
docker-compose.yamlfile (example) with the following content:
services:
webdav:
image: ghcr.io/fkropfhamer/docker-zotero-webdav:main
container_name: webdav
restart: unless-stopped
ports:
- "80:80/tcp"
volumes:
- "/path/to/your/data:/var/www/html/webdav"
environment:
- USERNAME=<your-username>
- PASSWORD=<your-password>
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
-
Replace
/path/to/your/datawith the actual path to the directory you want to serve. -
Set the desired
USERNAMEandPASSWORDfor authentication. -
Run the following command to start the container:
$ docker compose up -dor if you want to build the image yourself, docker compose --build -d up.
The healthcheck section in the docker-compose.yaml file ensures that the container is running and responsive. It sends an HTTP request to http://localhost every 30 seconds to check the container's health.