Files
container/duplicati/docker-compose.yml

18 lines
1021 B
YAML

services:
duplicati:
image: lscr.io/linuxserver/duplicati:latest
container_name: ${CONTAINER_NAME:-duplicati}
environment:
- PUID=${PUID:-1000} # Your User ID here! Find with 'id -u'
- PGID=${PGID:-1000} # Your Group ID here! Find with 'id -g'
- TZ=${TZ:-Europe/Berlin} # Your Timezone
- SETTINGS_ENCRYPTION_KEY=${ENCRYPTION_KEY} # Encryption key for settings (important!) - CHANGE THIS!
# - CLI_ARGS=${CLI_ARGS} # Optional: Extra command-line arguments
volumes:
- ${CONFIG_DIR:-./config}:/config # Where Duplicati stores its settings
- ${BACKUP_DIR:-./backups}:/backups # Where backups land (local, changeable!)
- ${DATA_DIR}:/source/data:ro # IMPORTANT: Map your data here!
#- /path/to/host/data2:/source/data2:ro # More data to back up
ports:
- "${HOST_PORT}:8200" # Port for accessing the web interface
restart: ${RESTART_POLICY:-unless-stopped}