Public Repository

Last pushed: 3 months ago
Short Description
Webdav with mappable user/group ids for volumes
Full Description

WebDAV container

You can run this container in following way. You can then access the WebDAV instance at http://localhost:8888/webdav. Internally the folder /var/webdav is used as WebDAV root.

docker run -d -e USERNAME=test -e PASSWORD=test -p 8888:80 afhrad/webdav

Most of the work is from https://hub.docker.com/r/morrisjobke/webdav/

Added functionality:

  • Add some userid/groupid for mapping users outside the container.

Sample docker-compose.yml_

  webdav1:
    image: afhrad/webdav:latest
    environment:
      USERNAME: <username>
      PASSWORD: <password>
      APACHE_GID: 1009
      APACHE_UID: 1008
    volumes:
      - "/samba/test:/var/webdav"
      - "./html/webdav1:/var/www/html"

So note that the APACHE_GID and APACHE_UID can be set and there will be an owner change in the container. Thus these IDs should match those on the volumes of the host-machine.

TODO:

  • Implement default behaviour when APACHE_GID and APACHE_UID haven't been set.
Docker Pull Command
Owner
afhrad

Comments (0)