Skip to main content
  1. Posts/

Duplicati Backup

Table of Contents

My Duplicati Setup
#

This Duplicati setup runs in a Docker container using the official LinuxServer.io image. It is configured to operate on port 8200, making the web interface accessible for backup management.


My Docker Compose Configuration
#

services:
  duplicati:
    image: lscr.io/linuxserver/duplicati:latest # Duplicati image
    container_name: duplicati # Container name
    environment:
      - PUID=0 # User ID for permissions
      - PGID=0 # Group ID for permissions
      - TZ=Europe/London # Container timezone
      - SETTINGS_ENCRYPTION_KEY= (your secret password) # Encrypt Duplicati settings database
    volumes:
      - ~/duplicati/config:/config # Persistent Duplicati configuration
      - /mnt/main_nas/server_backups:/backups # Backup destination path
      - ~:/source # Source data to back up
      - /opt/bitwarden:/opt/bitwarden # Extra source path example
    ports:
      - 8200:8200 # Duplicati web interface
    restart: unless-stopped # Restart unless stopped manually

Using Docker Secrets for Environment Variables
#

You can set any environment variable from a file by using a special prepend FILE__.

For example:

FILE__MYVAR=/run/secrets/mysecretvariable