feat: add postgres-pgadmin template - #1104
Merged
Siumauricio merged 3 commits intoAug 25, 2026
Merged
Conversation
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
Add postgres_domain variable and second [[config.domains]] for postgres:5432 alongside pgadmin:80, so both the DB and the web UI are reachable via Dokploy domains.
…r server in pgAdmin, bump pgAdmin to 9.17 - Remove the second [[config.domains]] pointing an HTTP host at postgres:5432 (Traefik returned 502). - Mount servers.json + pgpass via config.mounts so pgAdmin comes with the bundled PostgreSQL pre-registered and connects without a password prompt (pgpass is copied to the data volume with 0600 for uid 5050). - Bump dpage/pgadmin4 8.13 -> 9.17. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
Tested on a real Dokploy instance (hostinger.dokploy.com), imported from the branch and deployed with fresh volumes. Since As submitted
Pushed fix (a29d2fc)
Re-test after fix
LGTM after the fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add PostgreSQL + pgAdmin template
Adds a blueprint for PostgreSQL 18 Alpine with pgAdmin 4 Web UI, validated with Podman.
Stack
postgres:18-alpine— volumepostgres-data:/var/lib/postgresql(correct for Pg18, not/data), healthcheckpg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB},expose: 5432dpage/pgadmin4:8.13— volumepgadmin-data:/var/lib/pgadmin,PGADMIN_DEFAULT_EMAIL/PASSWORD,SERVER_MODE=False,MASTER_PASSWORD_REQUIRED=False,depends_on: postgres healthy,expose: 80via[[config.domains]]Template
template.tomlvariables:pgadmin_domain=${domain},postgres_user=${username},postgres_password=${password:32},postgres_db=postgres,pgadmin_email=${email},pgadmin_password=${password:16}serviceName=pgadmin port=80); Postgres internal viaexpose(add second domain if external TCP exposure desired)meta.jsonid: postgres-pgadminmatches folder,version: 18-alpinematches postgres tag, logopostgres-pgadmin.svgTesting
node build-scripts/generate-meta.js --check→ ✅ 518 templates validatedpodman compose up -d) —postgres | Up (healthy)(PostgreSQL 18.6,pg_isreadypassing),pgadmin | Up(gunicornhttp://[::]:80),psql -U testuser -c "SELECT version();"→PostgreSQL 18.6, hostcurl 127.0.0.1:5050(override) → 302 →/browser/