Back to Templates
PostgreSQL with PgDog logo

PostgreSQL with PgDog

v0.1.26

PostgreSQL database with PgDog connection pooler, load balancer, and horizontal scaling proxy. A modern alternative to PgBouncer with multi-threading support.

Deploy on Dokploy

Deploy PostgreSQL with PgDog on Dokploy

  1. Install Dokploy on your server if you haven't already.
  2. In your Dokploy panel, open a project and click Create Service → Template.
  3. Search for PostgreSQL with PgDog and click Create — Dokploy configures domains, environment variables, and volumes for you.

Alternatively, create a Compose service, go to Advanced → Import from Base64, and paste this payload:

base64
ewogICJjb21wb3NlIjogInNlcnZpY2VzOlxuICBwb3N0Z3Jlcy1wZ2RvZzpcbiAgICBpbWFnZTogJHtQR0RPR19JTUFHRX1cbiAgICByZXN0YXJ0OiB1bmxlc3Mtc3RvcHBlZFxuICAgICMgVW5jb21tZW50ICdwb3J0cycgc2V0dGluZ3MgYmVsb3cgdG8gZW5hYmxlIGV4dGVybmFsIGFjY2Vzc1xuICAgICMgcG9ydHM6XG4gICAgIyAgIC0gXCI2NDMyOjY0MzJcIlxuICAgIHZvbHVtZXM6XG4gICAgICAtIC4uL2ZpbGVzL3BnZG9nLnRvbWw6L3BnZG9nL3BnZG9nLnRvbWxcbiAgICAgIC0gLi4vZmlsZXMvdXNlcnMudG9tbDovcGdkb2cvdXNlcnMudG9tbFxuICAgIGVudmlyb25tZW50OlxuICAgICAgLSBSVVNUX0xPRz0ke1JVU1RfTE9HfVxuICAgIGRlcGVuZHNfb246XG4gICAgICBwb3N0Z3JlczpcbiAgICAgICAgY29uZGl0aW9uOiBzZXJ2aWNlX2hlYWx0aHlcblxuICBwb3N0Z3JlczpcbiAgICBpbWFnZTogJHtQT1NUR1JFU19JTUFHRX1cbiAgICByZXN0YXJ0OiB1bmxlc3Mtc3RvcHBlZFxuICAgIGVudmlyb25tZW50OlxuICAgICAgLSBQT1NUR1JFU19VU0VSPSR7UE9TVEdSRVNfVVNFUn1cbiAgICAgIC0gUE9TVEdSRVNfUEFTU1dPUkQ9JHtQT1NUR1JFU19Q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cn1cIlxuZGF0YWJhc2UgPSBcIiR7cG9zdGdyZXNfZGJ9XCJcbnBhc3N3b3JkID0gXCIke3Bvc3RncmVzX3Bhc3N3b3JkfVwiXG5cIlwiXCJcblxuW2NvbmZpZy5lbnZdXG5QT1NUR1JFU19VU0VSID0gXCIke3Bvc3RncmVzX3VzZXJ9XCJcblBPU1RHUkVTX1BBU1NXT1JEID0gXCIke3Bvc3RncmVzX3Bhc3N3b3JkfVwiXG5QT1NUR1JFU19EQiA9IFwiJHtwb3N0Z3Jlc19kYn1cIlxuUEdET0dfSU1BR0UgPSBcIiR7cGdkb2dfaW1hZ2V9XCJcblBPU1RHUkVTX0lNQUdFID0gXCIke3Bvc3RncmVzX2ltYWdlfVwiXG5SVVNUX0xPRyA9IFwiaW5mb1wiIgp9

Configuration

The exact Docker Compose and template configuration this template deploys.

Related Templates

PowerSync logo

PowerSync

Version: 1.21.0

PowerSync is a sync engine for local-first apps. Syncs PostgreSQL data to mobile devices and browsers with real-time replication.

syncdatabaselocal-first
TimescaleDB logo

TimescaleDB

Version: 2.26.4-pg17

TimescaleDB is an open-source time-series database packaged as a PostgreSQL extension, optimized for fast ingest and real-time analytics with standard SQL.

databasepostgresqltime-series
Adminer logo

Adminer

Version: 4.8.1

Adminer is a comprehensive database management tool that supports MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Elasticsearch, MongoDB and others. It provides a clean interface for efficient database operations, with strong security features and extensive customization options.

databasesdeveloper-toolsmysql
Appwrite logo

Appwrite

Version: 1.9.5

Appwrite is an end-to-end platform for building Web, Mobile, Native, or Backend apps, packaged as a set of Docker microservices. It includes both a backend server and a fully integrated hosting solution for deploying static and server-side rendered frontends. Appwrite abstracts the complexity and repetitiveness required to build modern apps from scratch and allows you to build secure, full-stack applications faster. Using Appwrite, you can easily integrate your app with user authentication and multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, Cloud Functions, messaging, and more services.

databasefirebasemariadb
ArangoDB logo

ArangoDB

Version: latest

ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.

databasegraph-databasenosql
Autobase logo

Autobase

Version: 2.7.2

Autobase for PostgreSQL® is an open-source alternative to cloud-managed databases (self-hosted DBaaS).

databasepostgresautomation

Self-host PostgreSQL with PgDog in minutes

Dokploy is a free, open source deployment platform. Deploy PostgreSQL with PgDog and 499+ other templates on your own infrastructure with a single click.