mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-15 14:52:05 -05:00
[PR #998] [MERGED] fix(homarr): use named volume for /appdata and 64-char hex encryption key #16306
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Dokploy/templates/pull/998
Author: @Siumauricio
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @Siumauricio
Base:
canary← Head:fix/homarr-volumes📝 Commits (1)
c6a0b1bfix(homarr): use named volume for /appdata and hex encryption key📊 Changes
2 files changed (+5 additions, -2 deletions)
View changed files
📝
blueprints/homarr/docker-compose.yml(+4 -1)📝
blueprints/homarr/template.toml(+1 -1)📄 Description
Problem
As reported in #738, the Homarr template mounts its data with a relative bind mount:
Bind mounts like this can't be backed up with Dokploy volume backups and depend on the compose file location on disk.
Additionally,
SECRET_ENCRYPTION_KEYwas generated with${password:64}. Homarr requires a 64-character hex string (equivalent toopenssl rand -hex 32, see the official install docs), but Dokploy'spasswordhelper emits lowercase alphanumeric characters includingg-z, which are not valid hex.Fix
homarr_appdata:/appdata(declared in a top-levelvolumes:section).SECRET_ENCRYPTION_KEYwith${hash:64}, which produces exactly 64 hex characters (randomBytes().toString("hex")).Evidence
Deployed the updated template on a Dokploy instance: deploy finished in 21s, container running, HTTP 200 on the generated domain, and the generated
SECRET_ENCRYPTION_KEYverified as a valid 64-character hex string.Note for existing installs
Existing deployments of this template keep their data in the old bind-mount directory (
../homarr/appdatainside the compose folder). After updating, they will start with a fresh named volume and need to copy their oldappdatacontents into it manually.Closes #738
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.