Sign inSign up

lcurrol/pg-view

By lcurrol

•Updated 25 days ago

Image
1

9.5K

lcurrol/pg-view repository overview

⁠pg-view

Lightweight web interface for exploring and querying PostgreSQL databases. Browse schemas and tables, edit rows, run SQL, and save favorite connections.


⁠Quick Start with Docker

docker run -d \
  --name pg-view \
  -p 8080:3000 \
  -v pg-view-data:/app/.data \
  lcurrol/pg-view:latest

Open http://localhost:8080⁠.


⁠Environment Variables

⁠Panel Authentication
VariableRequiredDescription
PGVIEW_USERNAMEYes*Username for accessing the panel
PGVIEW_PASSWORDYes*Panel password
PGVIEW_SESSION_SECRETRecommendedSecret used to sign sessions. If not set, it is derived from the username and password

* If neither PGVIEW_USERNAME nor PGVIEW_PASSWORD is set, the panel remains open without authentication. Not recommended for environments exposed to the internet.

⁠Default PostgreSQL Connection (Optional)

If you configure these variables, the app connects automatically on startup and goes straight to the dashboard:

VariableDefaultDescription
DB_URL—Connection URL (postgres://user:pass@host:5432/db). If present, it overrides the individual variables
DB_HOST—PostgreSQL host
DB_PORT5432Port
DB_NAME—Database
DB_USER—User
DB_PASSWORD—Password
⁠Options
VariableDefaultDescription
PGVIEW_READ_ONLYfalseRead-only mode (true / false)
PGVIEW_MAX_ROWS200Maximum number of rows returned per query
PGVIEW_QUERY_TIMEOUT_MS30000Query timeout in milliseconds
PORT3000Internal container port
⁠Persistence

Mount a volume at /app/.data to keep saved connections and history across restarts:

-v pg-view-data:/app/.data

Tag summary

Content type

Image

Digest

sha256:55f9f0bcd…

Size

59.4 MB

Last updated

25 days ago

docker pull lcurrol/pg-view