diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-31 19:35:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-31 19:35:17 +0900 |
| commit | f211ebcfac0a21e264b67c1226509896a11ed5ca (patch) | |
| tree | 502c10bbebe041c439a54b3fd08a5b90b5be4429 /compose.yaml | |
| parent | 594482a280279149cbf5cb8b8d086961e65b0fb0 (diff) | |
| download | kioku-f211ebcfac0a21e264b67c1226509896a11ed5ca.tar.gz kioku-f211ebcfac0a21e264b67c1226509896a11ed5ca.tar.zst kioku-f211ebcfac0a21e264b67c1226509896a11ed5ca.zip | |
refactor(db): replace DATABASE_URL with individual POSTGRES_* env vars
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 <noreply@anthropic.com>
Diffstat (limited to 'compose.yaml')
| -rw-r--r-- | compose.yaml | 6 |
1 files changed, 5 insertions, 1 deletions
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: |
