Runs a Nginx WebDav server in Docker
linux/amd64,linux/arm64,linux/arm/v7http://localhost/public - No authenticationhttp://localhost/restricted - Authentication if specified (see below)latest: Latest versionX.X.X: Semantic version (use if you want to stick on a specific version)| Variable | Required? | Definition | Example | Comments |
|---|---|---|---|---|
| WEBDAV_USERS | No | Comma-separated list of usernames/passwords, where each user-password pair is separated by a colon | user1:password1,user2:password2 | Usernames/passwords cannot contain commas , or colons : and all users share the same location for files (i.e., /restricted) |
| NGINX_CLIENT_MAX_BODY_SIZE | No (default: 250M) | Nginx's client_max_body_size | 500M | Be sure to include the units. Set to 0 to disable. |
| Port on host | Port in container | Comments |
|---|---|---|
| Choose at your discretion | 80 | Nginx |
| Volume on host | Volume in container | Comments |
|---|---|---|
| Choose at your discretion | /var/www/webdav | Used to store WebDav files |
Below is an example docker-compose.yml file.
version: '3'
services:
webdav:
container_name: docker-webdav-nginx
restart: unless-stopped
environment:
- WEBDAV_USERS=user1:password1,user2:password2
- NGINX_CLIENT_MAX_BODY_SIZE=500M
networks:
- webdav
ports:
- '8888:80'
volumes:
- 'webdav:/var/www/webdav'
image: loganmarchione/docker-webdav-nginx:latest
networks:
webdav:
volumes:
webdav:
driver: local
Below is an example of running locally (used to edit/test/debug).
# Build the Dockerfile
docker compose -f docker-compose-dev.yml up -d
# View logs
docker compose -f docker-compose-dev.yml logs -f
# Destroy when done
docker compose -f docker-compose-dev.yml down
Content type
Image
Digest
sha256:05ecc2d68…
Size
61.8 MB
Last updated
6 days ago
docker pull loganmarchione/docker-webdav-nginx