Provision and link a PostgreSQL service to a Dokku app

domain: dokku.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the plugin: sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git --name postgres
  2. Create a service: dokku postgres:create <service-name> (optionally with --image/--image-version for a variant like postgis or pgvector)
  3. Link it to an app: dokku postgres:link <service-name> <app-name> — this sets DATABASE_URL on the app automatically
  4. Verify connectivity with dokku postgres:info <service-name> --dsn, or dokku postgres:connect <service-name> for an interactive session
  5. Use dokku postgres:app-links <app> and postgres:links <service> to audit what's linked to what

Known gotchas

Related routes

Deploy an application to Dokku via git push
dokku.com · 5 steps · unrated
Enable free Let's Encrypt HTTPS certificates on a Dokku app
dokku.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans