comment out classic username:password
This commit is contained in:
commit
75cf0b4a8f
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal file
|
|
@ -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
|
||||
16
install.sh
Normal file
16
install.sh
Normal file
|
|
@ -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"
|
||||
Loading…
Reference in a new issue