# 1. Create folders mkdir -p duplicati/config duplicati/cache sudo mkdir -p /mnt/backups/duplicati sudo chown -R 1000:1000 duplicati /mnt/backups/duplicati # 2. Generate the real htpasswd string and put it in the compose file # (replace "admin" and "MyPassword123" with whatever you want) docker run --rm -it httpd:2.4 htpasswd -nb admin MyPassword123 # → copy the whole output, for example: # admin:$apr1$Q2w3E4r5$T6y7U8i9O0p1A2s3D4f5G6 # Then edit the compose file and replace the line: # - "traefik.http.middlewares.duplicati-auth.basicauth.users=CHANGE_ME_WITH_REAL_HTPASSWD" # with your real string, e.g.: # - "traefik.http.middlewares.duplicati-auth.basicauth.users=admin:$apr1$Q2w3E4r5$T6y7U8i9O0p1A2s3D4f5G6"