From d3bb5efa6769b17ea00a78ebaaff8b8dd6cb3c1e Mon Sep 17 00:00:00 2001 From: "david.noel@withpigment.com" Date: Sat, 11 Jul 2026 20:00:30 +0200 Subject: [PATCH] Add pgweb service for browsing the database Expose a lightweight web UI at http://localhost:8081 to explore the Postgres data, wired to the db service over the compose network. --- docker-compose.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 544b141..3fccf41 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,5 +10,17 @@ services: volumes: - postgres_data:/var/lib/postgresql + # Interface web d'exploration de la base, accessible sur http://localhost:8081 + pgweb: + image: sosedoff/pgweb + ports: + - "8081:8081" + environment: + # `db` est le nom du service Postgres ci-dessus (résolu via le réseau compose). + DATABASE_URL: postgres://postgres:postgres@db:5432/ipolitics?sslmode=disable + depends_on: + - db + restart: unless-stopped + volumes: postgres_data: