Skip to content

Feat: define postgres, pgweb Compose services - #3496

Merged
thekaveman merged 3 commits into
mainfrom
feat/postgres-service
Feb 17, 2026
Merged

Feat: define postgres, pgweb Compose services#3496
thekaveman merged 3 commits into
mainfrom
feat/postgres-service

Conversation

@thekaveman

@thekaveman thekaveman commented Feb 13, 2026

Copy link
Copy Markdown
Member

This is some very initial work I thought we could use to get started on #3446.

Here we define a postgres service in the Compose file for a local PostgreSQL database server, and an associated pgweb service for interacting with the server. No other integration with the devcontainer or Django is attempted in this PR.

Required environment variables with default values were also added to the .env.sample and relevant docs are updated.

NOTE: I went with postgres:16 which is not the latest image, to match the config we used in CDRC. At the time, this was the latest available in Azure's managed PostgreSQL offering, and we can easily revisit when we start configuring the cloud services.

Testing this PR

  1. Pull this branch outside of the devcontainer
  2. Update your .env file with the new variables, leaving the defaults
  3. Run docker compose up -d pgweb
  4. After startup, in a browser navigate to http://localhost:8081
  5. If prompted, login with the credentials from the default env vars
  6. See the pgweb interface connected to an (empty) postgres database:
image

@github-actions github-actions Bot added documentation [auto] Improvements or additions to documentation docker Application container, devcontainer, Compose, etc. labels Feb 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

@thekaveman
thekaveman force-pushed the feat/postgres-service branch from d08456d to d43d5af Compare February 13, 2026 22:28
@thekaveman
thekaveman marked this pull request as ready for review February 13, 2026 22:29
@thekaveman
thekaveman requested a review from a team as a code owner February 13, 2026 22:29
@thekaveman thekaveman linked an issue Feb 13, 2026 that may be closed by this pull request
5 tasks

@Scotchester Scotchester left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me; thanks!

@jgravois jgravois left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very cool!

Comment thread docs/reference/environment-variables.md

@lalver1 lalver1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! And works fine locally too 👍

I agree about the Postgres image, we can revisit this once we start working on the infrastructure.

@thekaveman
thekaveman merged commit f2b03f7 into main Feb 17, 2026
13 checks passed
@thekaveman
thekaveman deleted the feat/postgres-service branch February 17, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Application container, devcontainer, Compose, etc. documentation [auto] Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants