Runs a Nginx WebDav server in Docker
Go to file
Logan Marchione 0975574f66 Add multi-arch builds 2022-04-16 21:36:03 -04:00
.github/workflows Add multi-arch builds 2022-04-16 21:36:03 -04:00
.dockerignore Initial commit 2022-04-02 14:32:22 -04:00
Dockerfile Initial commit 2022-04-02 14:32:22 -04:00
README.md Update README.md 2022-04-02 16:52:26 -04:00
VERSION Bump VERSION 2022-04-16 21:35:47 -04:00
password.sh Initial commit 2022-04-02 14:32:22 -04:00
webdav.conf Initial commit 2022-04-02 14:32:22 -04:00

README.md

docker-webdav-nginx

CI/CD Docker Image Size (latest semver)

Runs a Nginx WebDav server in Docker

Explanation

  • Runs a Nginx WebDav server in Docker.
  • Exposes two WebDav locations
    • /public - No authentication
    • /restricted - Authentication if specified (see below)

Requirements

  • Requires a WebDav client.
  • I've found that not all clients are compatible (e.g., Dolphin doesn't work, but Thunar does).

Docker image information

Docker image tags

  • latest: Latest version
  • X.X.X: Semantic version (use if you want to stick on a specific version)

Environment variables

Variable Required? Definition Example Comments
WEBDAV_USER No WebDav username user user AND pass need to be set for authentication to work
WEBDAV_PASS No WebDav password password1 user AND pass need to be set for authentication to work

Ports

Port on host Port in container Comments
Choose at your discretion 80 Nginx

Volumes

Volume on host Volume in container Comments
Choose at your discretion /var/www/webdav Used to store WebDav files

Example usage

Below is an example docker-compose.yml file.

version: '3'
services:
  webdav:
    container_name: webdav
    restart: unless-stopped
    environment:
      - WEBDAV_USER=user
      - WEBDAV_PASS=password1
    networks:
      - webdav
    ports:
      - '8888:80'
    volumes:
      - 'webdav:/var/www/webdav'
    image: loganmarchione/docker-webdav-nginx:latest

networks:
  webdav:

volumes:
  webdav:
    driver: local

TODO