commit 75cf0b4a8f194ca589407df046f4884f8257aaf8 Author: Dejan R. Date: Tue Nov 25 07:09:49 2025 +0000 comment out classic username:password diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e2749e7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,31 @@ +services: + duplicati: + image: lscr.io/linuxserver/duplicati:latest + container_name: duplicati + restart: unless-stopped + networks: + - traefik_default # ← use networks, not network_mode + volumes: + - /mnt/Duplicati/duplicati/config:/config + - /mnt/Duplicati/duplicati/cache:/temp + - /mnt/Duplicati:/backups + - /var/lib/docker/volumes:/source/volumes:ro + - /home/Dejan/Docker:/source/docker-projects:ro + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Zagreb # you can change to Europe/Ljubljana if you want + - DUPLICATI__WEBSERVICE_PASSWORD=biker111 + - SETTINGS_ENCRYPTION_KEY=DuplicatiSuperSecretKey2025!123 + labels: + - "traefik.enable=true" + - "traefik.http.routers.duplicati.rule=Host(`duplicati.rozic-dev.com`)" + - "traefik.http.routers.duplicati.entrypoints=websecure" + - "traefik.http.routers.duplicati.tls.certresolver=letsencrypt" + - "traefik.http.services.duplicati.loadbalancer.server.port=8200" + # - "traefik.http.routers.duplicati.middlewares=duplicati-auth" + # - "traefik.http.middlewares.duplicati-auth.basicauth.users=Dejan:$$apr1$$C/5YFIN0$$kgYEltrFDIKugeBfZ///b0" +# +networks: + traefik_default: + external: true diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..469da5a --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +# 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"