version: '3' services: webdav: image: bytemark/webdav container_name: webdav restart: unless-stopped environment: AUTH_TYPE: Basic USERNAME: admin PASSWORD: password SERVER_NAMES: webdav.site networks: - web security_opt: - no-new-privileges:true volumes: - /opt/webdav:/var/lib/dav labels: - "traefik.enable=true" - "traefik.http.routers.webdav.entrypoints=http" - "traefik.http.routers.webdav.rule=Host(`webdav.site`)" - "traefik.http.middlewares.webdav-https-redirect.redirectscheme.scheme=https" - "traefik.http.routers.webdav.middlewares=webdav-https-redirect" - "traefik.http.routers.webdav-secure.entrypoints=https" - "traefik.http.routers.webdav-secure.rule=Host(`webdav.site`)" - "traefik.http.routers.webdav-secure.tls=true" - "traefik.http.routers.webdav-secure.tls.certresolver=http" - "traefik.http.routers.webdav-secure.service=webdav" - "traefik.http.services.webdav.loadbalancer.server.port=80" - "traefik.docker.network=web" networks: web: external: true