From f211ebcfac0a21e264b67c1226509896a11ed5ca Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 31 Dec 2025 19:35:17 +0900 Subject: refactor(db): replace DATABASE_URL with individual POSTGRES_* env vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eliminates duplicate configuration by building the connection URL from POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB, POSTGRES_HOST, and POSTGRES_PORT instead of requiring a separate DATABASE_URL. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- compose.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'compose.yaml') diff --git a/compose.yaml b/compose.yaml index 6308342..8c89cd3 100644 --- a/compose.yaml +++ b/compose.yaml @@ -24,7 +24,11 @@ services: container_name: kioku-server restart: unless-stopped environment: - DATABASE_URL: ${DATABASE_URL} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_HOST: kioku-db + POSTGRES_PORT: 5432 JWT_SECRET: ${JWT_SECRET} NODE_ENV: production expose: -- cgit v1.2.3-70-g09d2