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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user