How to easily run a Webdav server in a Docker container
How to easily run a Webdav server in a Docker container
![](https://lemdro.id/pictrs/image/961a35c7-0e0d-4860-ab8b-821549813335.png?format=webp&thumbnail=128)
![Docker Compose File:
services:
webdav-server:
image: rclone/rclone
restart: unless-stopped
env_file:
- ".env"
command:
- "serve"
- "webdav"
- "--addr"
- ":8080"
- "--user"
- ${WEBDAV_USER}
- "--pass"
- ${WEBDAV_PASS}
- "/srv"
volumes:
- data:/srv
ports:
- ${WEBDAV_PORT}:8080
volumes:
data:](https://lemdro.id/pictrs/image/961a35c7-0e0d-4860-ab8b-821549813335.png?format=webp)
How to easily run a Webdav server in a Docker container
A lot of open source software lets you synchronise data via webdav, but how do you get a #webdav server?
Using Apache with the dav module is a common approach, but I couldn't bother to set it up that way.
My way is different: Rclone can act as a webdav server and is easy to configure.
I've been using it for 3 years and it's very reliable.
Have a look at the compose file in the picture.
@selfhosted