Pull DATABASE_URL from host env in docker-compose.example.yml

Avoids writing credentials to disk. The bare key form passes the value
through from the host environment at compose-up time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
didericis
2026-05-05 16:02:50 -04:00
parent da219f331b
commit 8ec8df3827
+3 -1
View File
@@ -10,7 +10,9 @@ services:
restart: unless-stopped
environment:
# Read-only Postgres user (see db/setup.sql).
DATABASE_URL: "postgres://heatmap_ro:CHANGE_ME@gitea-db:5432/gitea?sslmode=disable"
# Pass DATABASE_URL from the host environment — never write credentials to disk.
# e.g. export DATABASE_URL=postgres://heatmap_ro:...@gitea-db:5432/gitea?sslmode=disable
DATABASE_URL:
# Comma-separated lowercase usernames whose heatmap may be served.
ALLOWED_USERS: "didericis"
# CORS: must match the origin Gitea is served from.