Self-host pgAdmin
updated Sep 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Sep 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
The long-standing open-source administration and development tool for PostgreSQL, run as a web app: browse and edit objects, run queries in the Query Tool, view explain plans, and manage roles, backups and restores.
Key facts
CategoryDatabase admin
LicensePostgreSQL
StackPython, Flask, React
Min RAM512 MB
Official imageyes
Measured idle RAM227 MB
Difficulty
What you need
- Any VPS with at least 512 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- Under an hour if you've used Docker before
Where to host itaffiliate disclosure
Hetzner Cloudrun it on
From $23.59/mo · 2 vCPU / 4 GB / 80 GB · EU + USKamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + AsiaDigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + AsiaPaid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# pgAdmin 4 — the official container (pgadmin.org/docs/pgadmin4/latest/container_deployment.html)
PGADMIN_PASSWORD=$(openssl rand -hex 16); echo "pgAdmin password: $PGADMIN_PASSWORD"
docker run -d --name pgadmin --restart unless-stopped \
-p 5050:80 -v pgadmin-data:/var/lib/pgadmin \
-e PGADMIN_DEFAULT_EMAIL=admin@example.com \
-e PGADMIN_DEFAULT_PASSWORD="$PGADMIN_PASSWORD" \
dpage/pgadmin4:9.18
# open http://SERVER_IP:5050 and log in as admin@example.com, then register your PostgreSQL serversHead-to-head
More self-hosted tools
Database admin
CloudBeaver
JavaTypeScriptReact
easyRead guide →
Project Management
tududi
TypeScriptNode.jsExpressReactSQLite
easyRead guide →
Media automation
Sonarr
C#.NETReact
easyRead guide →
File sharing
Zipline
TypeScriptReactFastifyPostgreSQL
easyRead guide →