github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/contrib/docker/docker-compose.webdav-server.yml (about)

     1  rclone-webdav-server:
     2    container_name: rclone-webdav-server
     3  
     4    image: rclone/rclone
     5    command:
     6  # Tweak here rclone's command line switches:
     7  #    - "--config"
     8  #    - "/path/to/mounted/rclone.conf"
     9      - "--verbose"
    10      - "serve"
    11      - "webdav"
    12      - "remote:/"
    13  #    - "--addr"
    14  #    - "0.0.0.0:8080"
    15      - "--read-only"
    16  #    - "--no-modtime"
    17  #    - "--no-checksum"
    18  
    19    restart: unless-stopped
    20  
    21    # Use host networking for simplicity.
    22    # It also enables server's default listen on 127.0.0.1 to work safely.
    23    net: host
    24  
    25    # If you want to use port mapping instead of host networking,
    26    # make sure to make rclone listen on 0.0.0.0.
    27    #ports:
    28    #  - "127.0.0.1:8080:8080"
    29  
    30    # Here you have to map your host's rclone.conf directory to
    31    # container's /root/.config/rclone/ dir (R/O).
    32    # If you have any remote referencing local files, you have to
    33    # map them here, too.
    34    volumes:
    35      - ~/.config/rclone/:/root/.config/rclone/:ro