Switch backrest and filebrowser-colleen-hd to systemd automount bind mount

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.
This commit is contained in:
2026-02-20 21:30:57 +00:00
parent bb41473360
commit e9bf43469c
2 changed files with 4 additions and 21 deletions
+1 -10
View File
@@ -1,13 +1,5 @@
version: "3.8"
volumes:
backup-mnt:
driver: local
driver_opts:
type: cifs
o: "addr=192.168.1.192,username=${SMB_USERNAME},password=${SMB_PASSWORD},vers=3.0,uid=0,gid=0,file_mode=0755,dir_mode=0755,iocharset=utf8,noperm,noserverino,echo_interval=300"
device: "//192.168.1.192/backup/nas-docker-data"
services:
backrest:
image: garethgeorge/backrest:latest
@@ -20,8 +12,7 @@ services:
- /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/backup-export:/backup-export # NFS share backup destination
- backup-mnt:/backup-export # NFS share backup destination
- /mnt/nas_backup/nas-docker-data:/backup-export
environment:
- BACKREST_DATA=/data
- BACKREST_CONFIG=/config/config.json
+1 -9
View File
@@ -6,7 +6,7 @@ services:
FILEBROWSER_CONFIG: "data/config.yaml"
TZ: "America/New_York"
volumes:
- backup-mnt:/folder
- /mnt/nas_backup:/folder
- /srv/filebrowser-colleen-hd:/home/filebrowser/data
ports:
- 3427:80
@@ -14,14 +14,6 @@ services:
- npm-network
restart: unless-stopped
volumes:
backup-mnt:
driver: local
driver_opts:
type: cifs
o: "addr=192.168.1.192,username=${SMB_USERNAME},password=${SMB_PASSWORD},vers=3.0,uid=0,gid=0,file_mode=0755,dir_mode=0755,iocharset=utf8,noperm,noserverino,echo_interval=300"
device: "//192.168.1.192/backup"
networks:
default:
npm-network: