Manages the pgAdmin Docker container, providing a web UI for PostgreSQL database management.
text
pgadmin-manager/
├── docker-compose.yml # pgAdmin 4 container (pinned to 8.6)
└── run.sh # lifecycle CLI
Connects to the shared nginx-proxy_net network and reaches PostgreSQL at codai_postgres:5432. Server configurations are persisted in a named volume ( pgadmin_data).
bash
./run.sh start # start pgAdmin container
./run.sh stop # stop container (config persists in volume)
./run.sh status # show status and URL
./run.sh open # print access URL
Check your session context for the absolute script path, then run:
bash
<plugin-root>/pgadmin-manager/run.sh start
Open http://localhost:8082 in a browser. Login: admin@codai.local / pgadmin.
To connect to PostgreSQL inside pgAdmin, add a server with:
codai_postgres5432codai / Password: pgpassbash
<plugin-root>/pgadmin-manager/run.sh status
Start in this order:
proxy-manager start — creates the shared Docker networkpostgres-manager start — PostgreSQL must be running before pgAdmin connectsVariableDefaultPurposePGADMIN_CONTAINER``codai_pgadminContainer namePGADMIN_PORT``8082Host portPGADMIN_EMAIL``admin@codai.localLogin e-mailPGADMIN_PASSWORD``pgadminLogin passwordCODAI_NETWORK``nginx-proxy_netShared Docker network name
postgres-manager before this plugin — pgAdmin cannot connect without PostgreSQL.8082 is bound to 127.0.0.1 — accessible from the host only.pgadmin_data volume).stop when done; the container uses restart: unless-stopped and survives reboots.docker compose down -v only when you intentionally want to delete saved server configs.proxy-manager — creates the shared Docker network (start first)postgres-manager — PostgreSQL container that pgAdmin connects to