From c6a0b1b1b5d50c21c4b394d4f8d8ab941ae58a12 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 14 Jul 2026 10:58:33 -0600 Subject: [PATCH] fix(homarr): use named volume for /appdata and hex encryption key - Replace the relative bind mount `../homarr/appdata:/appdata` with a named volume `homarr_appdata:/appdata` so the data survives cleanups and can be backed up through Dokploy volume backups. - Generate SECRET_ENCRYPTION_KEY with `${hash:64}` instead of `${password:64}`: homarr requires a 64-character hex string (`openssl rand -hex 32`) and the password helper emits non-hex characters (g-z). Closes #738 Co-Authored-By: Claude Fable 5 --- blueprints/homarr/docker-compose.yml | 5 ++++- blueprints/homarr/template.toml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/blueprints/homarr/docker-compose.yml b/blueprints/homarr/docker-compose.yml index 876ea3f6..c43e62f3 100644 --- a/blueprints/homarr/docker-compose.yml +++ b/blueprints/homarr/docker-compose.yml @@ -4,8 +4,11 @@ services: restart: unless-stopped volumes: # - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration - - ../homarr/appdata:/appdata + - homarr_appdata:/appdata environment: - SECRET_ENCRYPTION_KEY=${SECRET_ENCRYPTION_KEY} ports: - 7575 + +volumes: + homarr_appdata: diff --git a/blueprints/homarr/template.toml b/blueprints/homarr/template.toml index d73be947..6cdf00cd 100644 --- a/blueprints/homarr/template.toml +++ b/blueprints/homarr/template.toml @@ -1,6 +1,6 @@ [variables] main_domain = "${domain}" -secret_key = "${password:64}" +secret_key = "${hash:64}" [config] env = ["SECRET_ENCRYPTION_KEY=${secret_key}"]