e9bf43469c
Replace Docker CIFS named volumes with bind mounts to /mnt/nas_backup, which is managed by a systemd automount unit. This handles drive spin-down reconnection independently of Docker container lifecycle.
25 lines
725 B
YAML
25 lines
725 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
backrest:
|
|
image: garethgeorge/backrest:latest
|
|
container_name: backrest
|
|
hostname: backrest
|
|
volumes:
|
|
- /srv/backrest/data:/data
|
|
- /srv/backrest/config:/config
|
|
- /srv/backrest/cache:/cache
|
|
- /srv/backrest/tmp:/tmp
|
|
- /srv/backrest/rclone:/root/.config/rclone # Mount for rclone config (needed when using rclone remotes)
|
|
- /srv:/srv-data # Mount local paths to backup
|
|
- /mnt/nas_backup/nas-docker-data:/backup-export
|
|
environment:
|
|
- BACKREST_DATA=/data
|
|
- BACKREST_CONFIG=/config/config.json
|
|
- XDG_CACHE_HOME=/cache
|
|
- TMPDIR=/tmp
|
|
- TZ=America/New_York
|
|
ports:
|
|
- "9898:9898"
|
|
restart: unless-stopped
|