refactor: move homarr SECRET_ENCRYPTION_KEY to .env

Define HOMARR_SECRET_ENCRYPTION_KEY in .env and reference it from docker-compose.yml instead of hardcoding it inline, keeping all secrets in .env. Resolved value is unchanged (no container recreate); deployed to valhalla and validated with 'dc config homarr'.
This commit is contained in:
ginnoir
2026-06-03 04:21:33 -05:00
parent 16b08bad8a
commit ea669e815c
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -623,7 +623,7 @@ services:
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
environment:
- SECRET_ENCRYPTION_KEY=98989838bf06c9e42d77944ce848963a22ab316b55a09b0d199652ef0934394f
- SECRET_ENCRYPTION_KEY=${HOMARR_SECRET_ENCRYPTION_KEY}
networks:
- management
volumes: