Files
templates/blueprints/duplicati/docker-compose.yml
Mauricio Siu ede9c3684c fix: align compose env vars with template.toml and allow external hostnames
The compose file referenced ${SERVICE_PASSWORD_ENCRYPT} and
${SERVICE_PASSWORD_WEB}, but template.toml defines the variables as
SETTINGS_ENCRYPTION_KEY and DUPLICATI__WEBSERVICE_PASSWORD, so both
values rendered empty at deploy time. Also removed the leftover
SERVICE_URL_DUPLICATI_8200 passthrough entry and added
DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES=* so the Duplicati web server
(2.0.8+) accepts requests forwarded by Traefik for the configured
domain instead of rejecting unknown Host headers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 02:10:02 -06:00

31 lines
751 B
YAML

version: '3.8'
services:
duplicati:
image: 'lscr.io/linuxserver/duplicati:${APP_RELEASE:-2.3.0}'
restart: unless-stopped
environment:
- PUID=0
- PGID=0
- 'TZ=${TZ:-Europe/London}'
- 'SETTINGS_ENCRYPTION_KEY=${SETTINGS_ENCRYPTION_KEY}'
- 'DUPLICATI__WEBSERVICE_PASSWORD=${DUPLICATI__WEBSERVICE_PASSWORD}'
- 'DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES=*'
volumes:
- 'duplicati-config:/config'
- '../files/backups:/backups'
- '../files/source:/source'
- '../files/restore:/restore'
healthcheck:
test:
- CMD
- curl
- '-f'
- 'http://127.0.0.1:8200'
interval: 2s
timeout: 10s
retries: 15
volumes:
duplicati-config: {}