Dokploy

Backrest

Backrest is a web-based backup solution powered by restic, offering an intuitive WebUI for easy repository management, snapshot browsing, and file restoration. It runs in the background, automating snapshot scheduling and repository maintenance. Built with Go, Backrest is a lightweight standalone binary with restic as its only dependency. It provides a secure and user-friendly way to manage backups while still allowing direct access to the restic CLI for advanced operations.

Backrest logo

Configuration

services:
  backrest:
    image: garethgeorge/backrest:v1.7.3
    restart: unless-stopped
    ports:
      - 9898
    environment:
      - BACKREST_PORT=9898
      - BACKREST_DATA=/data # where it stores current state data
      - BACKREST_CONFIG=/config/config.json # where it stores backup configurations
      - XDG_CACHE_HOME=/cache # backup cache
      - TZ=${TZ}
    volumes:
      - backrest/data:/data
      - backrest/config:/config
      - backrest/config:/cache # to preserve backup cache between restarts
      - /:/userdata:ro # we mount /mnt/data to /userdata (that we want to backup)

volumes:
  backrest:
  backrest-cache:
[variables]
main_domain = "${domain}"

[config]
env = ["TZ=Europe/Paris"]
mounts = []

[[config.domains]]
serviceName = "backrest"
port = 9_898
host = "${main_domain}"

Base64

To import this template in Dokploy: create a Compose service → AdvancedBase64 import and paste the content below:

ewogICJjb21wb3NlIjogInNlcnZpY2VzOlxuICBiYWNrcmVzdDpcbiAgICBpbWFnZTogZ2FyZXRoZ2VvcmdlL2JhY2tyZXN0OnYxLjcuM1xuICAgIHJlc3RhcnQ6IHVubGVzcy1zdG9wcGVkXG4gICAgcG9ydHM6XG4gICAgICAtIDk4OThcbiAgICBlbnZpcm9ubWVudDpcbiAgICAgIC0gQkFDS1JFU1RfUE9SVD05ODk4XG4gICAgICAtIEJBQ0tSRVNUX0RBVEE9L2RhdGEgIyB3aGVyZSBpdCBzdG9yZXMgY3VycmVudCBzdGF0ZSBkYXRhXG4gICAgICAtIEJBQ0tSRVNUX0NPTkZJRz0vY29uZmlnL2NvbmZpZy5qc29uICMgd2hlcmUgaXQgc3RvcmVzIGJhY2t1cCBjb25maWd1cmF0aW9uc1xuICAgICAgLSBYREdfQ0FDSEVfSE9NRT0vY2FjaGUgI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