Persist filebrowser config to /data/filebrowser
Mount /data/filebrowser as /config and point FB_DATABASE at /config/filebrowser.db so the user/share database survives container recreations. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -147,6 +147,9 @@
|
|||||||
"d /data/backup 0775 root root -"
|
"d /data/backup 0775 root root -"
|
||||||
"d /data/backup/timemachine 0775 danlin users -"
|
"d /data/backup/timemachine 0775 danlin users -"
|
||||||
|
|
||||||
|
# FileBrowser config
|
||||||
|
"d /data/filebrowser 0755 root root -"
|
||||||
|
|
||||||
# Secrets
|
# Secrets
|
||||||
"d /data/secrets 0700 root root -"
|
"d /data/secrets 0700 root root -"
|
||||||
|
|
||||||
@@ -165,9 +168,13 @@
|
|||||||
image = "gtstef/filebrowser:stable";
|
image = "gtstef/filebrowser:stable";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ports = [ "8080:80" ];
|
ports = [ "8080:80" ];
|
||||||
volumes = [ "/data:/srv" ];
|
volumes = [
|
||||||
|
"/data:/srv"
|
||||||
|
"/data/filebrowser:/config"
|
||||||
|
];
|
||||||
environment = {
|
environment = {
|
||||||
TZ = "Europe/Berlin";
|
TZ = "Europe/Berlin";
|
||||||
|
FB_DATABASE = "/config/filebrowser.db";
|
||||||
};
|
};
|
||||||
environmentFiles = [ "/data/secrets/filebrowser.env" ];
|
environmentFiles = [ "/data/secrets/filebrowser.env" ];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user