Back to catalog
PostgreSQL logo

Self-Host with Docker · Yantr

PostgreSQL

Open-source relational database with JSON support, full-text search, and extensions.

Ports

1

Deps

0

Use Cases

4

About

What PostgreSQL does

PostgreSQL is a powerful, open-source object-relational database system known for reliability, feature robustness, and performance. It supports both SQL (relational) and JSON (non-relational) querying, making it perfect for modern applications. Features include ACID compliance, MVCC for co...

Install Flow

How to self-host PostgreSQL

PostgreSQL can be deployed with standard Docker Compose using the Yantr app catalog. This page collects the basic information searchers usually need first: what PostgreSQL does, which Docker image Yantr uses, default ports, dependencies, and where to find the original compose template.

If you searched for PostgreSQL Docker, PostgreSQL Docker Compose, or self-host PostgreSQL, this page is the direct landing page for that app in Yantr's catalog.

After deployment, Yantr also lets you publish additional ports later from the stack page using Docker-style syntax. Use mappings like 8080:8080 for a fixed host port or just 8080 to let Docker assign a random host port for container port 8080.

Use Cases

What people run it for

Use as the database backend for complex applications like Wiki.js, Ghostfolio, or Home Assistant.
Store JSON data alongside relational data in the same database.
Enable full-text search for building search features in your applications.
Use pgvector extension for storing and querying AI embeddings.

Technical Details

Ports, image, and service metadata

Ports

These are the standard container ports Yantr knows about for PostgreSQL. You can keep the default mapping, remap them, or publish extra ports later after deployment with Docker syntax such as 3000:3000 or 3000.

Port Protocol Label
5432 TCP Database

Docker Image

postgres:latest

Service Name

postgresql

Notes

Things to know before you deploy

! Requires POSTGRES_PASSWORD environment variable
! Can use volumes for data persistence
! Supports numerous extensions for specialized use cases

Related Apps

More tools you might pair with PostgreSQL

More App Pages

Keep browsing the Yantr catalog

Explore the full app catalog for more self-hosted services, alternatives, and dependencies that work alongside PostgreSQL.

Page generated 2026-05-03T17:57:37.943Z