mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-16 11:25:25 +02:00
- 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 <noreply@anthropic.com>
15 lines
362 B
YAML
15 lines
362 B
YAML
services:
|
|
homarr:
|
|
image: ghcr.io/homarr-labs/homarr:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
# - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
|
|
- homarr_appdata:/appdata
|
|
environment:
|
|
- SECRET_ENCRYPTION_KEY=${SECRET_ENCRYPTION_KEY}
|
|
ports:
|
|
- 7575
|
|
|
|
volumes:
|
|
homarr_appdata:
|