Skip to content

fkropfhamer/docker-zotero-webdav

 
 

Repository files navigation

WebDAV Server Docker

A secure, fast, and lightweight WebDAV Server, built with lighttpd.

How to use this image

Using docker run

$ 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:main

Replace /path/to/your/data with the actual path to the directory you want to serve, and set the desired USERNAME and PASSWORD for authentication.

Using docker-compose (recommended)

  1. Create a docker-compose.yaml file (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
  1. Replace /path/to/your/data with the actual path to the directory you want to serve.

  2. Set the desired USERNAME and PASSWORD for authentication.

  3. Run the following command to start the container:

$ docker compose up -d

or if you want to build the image yourself, docker compose --build -d up.

Healthcheck

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.

About

A Simple WebDAV File Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile 69.7%
  • Shell 30.3%