Files
homelab-docker-stacks/backrest/compose.yaml
T

46 lines
1.1 KiB
YAML

name: backrest
services:
backrest:
image: ghcr.io/garethgeorge/backrest:v1.14.1
container_name: backrest
volumes:
- /srv/data/backrest/data:/data
- /srv/data/backrest/config:/config
- /srv/data/backrest/rclone:/root/.config/rclone
- /srv/data/backrest/repos:/repos
- /srv/fast/backrest/cache:/cache
- /mnt/toshiba:/mnt/toshiba
- /srv:/mnt/srv
environment:
BACKREST_DATA: /data
BACKREST_CONFIG: /config/config.json
XDG_CACHE_HOME: /cache
TMPDIR: /tmp
TZ: Asia/Shanghai
networks:
- proxy
restart: unless-stopped
cap_add:
- CHOWN
- DAC_OVERRIDE
- DAC_READ_SEARCH
- FOWNER
- FSETID
# Root keeps only the capabilities restic needs to read and restore
# files owned by other users.
cap_drop:
- ALL
deploy:
resources:
limits:
cpus: "3.0"
memory: 3G
reservations:
cpus: "1.0"
memory: 512M
security_opt:
- no-new-privileges:true
networks:
proxy:
external: true