Levelrail
Skip to content

Self-host pgAdmin with Docker ​

A full-featured web GUI for administering and querying PostgreSQL databases.

This page describes the Levelrail template for pgAdmin (Database Tools). It deploys the services below as one Docker Compose app on your own server.

Project site: https://www.pgadmin.org/docs/.

Recommended memory: about 256 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
pgadmindpage/pgadmin4:8.1480
pgadmin_data -> /var/lib/pgadmin

Environment variables ​

ServiceVariableValue
pgadminPGADMIN_DEFAULT_EMAILPreset in the template
pgadminPGADMIN_DEFAULT_PASSWORDGenerated at deploy

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy pgAdmin with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select pgAdmin. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy pgadmin --name my-pgadmin

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Database Tools templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.