pgweb — a fast, lightweight, browser-based PostgreSQL client: browse tables, run queries, inspect schemas, and export results. Deployed as a stateless host-networked Nomad service in sessions mode, so each user enters their own connection in the UI. Pairs with the postgres pack.
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "pgweb"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The pgweb container image. Pin a tag in production.
image = "sosedoff/pgweb:latest"
# Host port for the pgweb web UI.
port = 8081
# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources.
resources = {
cpu = 200
memory = 128
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "pgweb" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "sosedoff/pgweb:latest" | The pgweb container image. Pin a tag in production. |
| port | number | 8081 | Host port for the pgweb web UI. |
| constraints | list | [] | Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 200
memory = 128
} | The task resources. |
No variables match.
pgweb — a fast, lightweight, browser-based PostgreSQL client: browse tables, run queries, inspect schemas, and export results.
Stateless host-networked Nomad service in sessions mode, so each user enters their own connection in the UI. Pairs with the postgres pack.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run pgweb --registry=nomploy
| Variable | Default | Description |
|---|---|---|
port |
8081 |
Web UI port. |
image |
sosedoff/pgweb:latest |
Container image. Pin a tag in production. |
resources |
{ cpu = 200, memory = 128 } |
Task resources. |
Open the UI and connect to any reachable Postgres (a co-located postgres pack is on
127.0.0.1:5432). pgweb grants full database access — keep it internal or behind auth.