fix(infra): rename pgweb DATABASE_URL to PGWEB_DATABASE_URL #62

Merged
julien merged 1 commits from fix/infra/pgweb-env-var into main 2026-05-08 22:58:22 +02:00
Owner

Summary

pgweb 0.16 deprecated DATABASE_URL in favour of PGWEB_DATABASE_URL. With the old name, the container starts up, emits a [DEPRECATION] warning, then crashes:

[DEPRECATION] Usage of DATABASE_URL env var is deprecated, please use PGWEB_DATABASE_URL variable instead
Pgweb v0.16.2 ...
Error: Invalid URL. Valid format: postgres://user:password@host:port/db?sslmode=mode

— because the new code path reads PGWEB_DATABASE_URL (empty) and the URL parser rejects an empty string.

Rename the env key in the compose file. Same value, just the new name.

Test plan

  • After merge: docker compose -f infra/local/dev.compose.yml --profile dbtools up -d → pgweb stays running (not in Restarting loop).
  • http://localhost:8081 loads pgweb's UI; click through to the audit schema and the four audit_* roles to confirm DB connection.
## Summary pgweb 0.16 deprecated `DATABASE_URL` in favour of `PGWEB_DATABASE_URL`. With the old name, the container starts up, emits a `[DEPRECATION]` warning, then crashes: ``` [DEPRECATION] Usage of DATABASE_URL env var is deprecated, please use PGWEB_DATABASE_URL variable instead Pgweb v0.16.2 ... Error: Invalid URL. Valid format: postgres://user:password@host:port/db?sslmode=mode ``` — because the new code path reads `PGWEB_DATABASE_URL` (empty) and the URL parser rejects an empty string. Rename the env key in the compose file. Same value, just the new name. ## Test plan - [ ] After merge: `docker compose -f infra/local/dev.compose.yml --profile dbtools up -d` → pgweb stays running (not in `Restarting` loop). - [ ] http://localhost:8081 loads pgweb's UI; click through to the `audit` schema and the four `audit_*` roles to confirm DB connection.
julien added 1 commit 2026-05-08 22:58:10 +02:00
fix(infra): rename pgweb DATABASE_URL to PGWEB_DATABASE_URL
CI / commits (pull_request) Successful in 1m23s
CI / check (pull_request) Successful in 1m30s
CI / scan (pull_request) Successful in 1m33s
CI / a11y (pull_request) Successful in 1m24s
CI / perf (pull_request) Successful in 2m55s
ddddbc592b
pgweb 0.16 deprecated `DATABASE_URL` in favour of
`PGWEB_DATABASE_URL`. With the old name, the container starts up,
emits a `[DEPRECATION]` warning, then crashes:

    Error: Invalid URL. Valid format:
    postgres://user:password@host:port/db?sslmode=mode

— because the new code path reads `PGWEB_DATABASE_URL` (empty)
and the URL parser rejects an empty string.

Rename the env key in the compose file. Same value, just the new
name.
julien merged commit 10f8565957 into main 2026-05-08 22:58:22 +02:00
julien deleted branch fix/infra/pgweb-env-var 2026-05-08 22:58:26 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: julien/apf_portal#62