Skip to content

Add pgweb service for browsing the database#5

Open
DavidNO wants to merge 1 commit into
mainfrom
add-pgweb-ui
Open

Add pgweb service for browsing the database#5
DavidNO wants to merge 1 commit into
mainfrom
add-pgweb-ui

Conversation

@DavidNO

@DavidNO DavidNO commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Objectif

Pouvoir explorer la base Postgres depuis le navigateur, sans installer de client local (psql n'est pas requis).

Changement

  • Ajout d'un service pgweb (sosedoff/pgweb) au docker-compose.yml, accessible sur http://localhost:8081 après docker compose up.
  • Il se connecte au service db via le réseau compose (DATABASE_URL=postgres://postgres:postgres@db:5432/ipolitics) et démarre automatiquement (depends_on: db, restart: unless-stopped).

Utilisation

docker compose up -d
# puis ouvrir http://localhost:8081

Les tables (amendements, dossiers) apparaissent dans la barre latérale. Interface légère orientée exploration/lecture et export.

Notes

  • Aucune donnée ni credential sensible : réutilise les identifiants locaux déjà définis pour db (postgres/postgres).
  • YAML validé.

Expose a lightweight web UI at http://localhost:8081 to explore the
Postgres data, wired to the db service over the compose network.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant