Back to Apps
Supabase PostgreSQL

Deploy Supabase PostgreSQL on Your Own Server

Supabase makes it easy to use Postgres.

πŸ—„οΈ Databases

Want to deploy Supabase PostgreSQL on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is Supabase PostgreSQL?

Postgres + goodies = Supabase Postgres Unmodified Postgres with some useful plugins. Why use it over the official postgres image? It is an unmodified Postgres image with convenient plugins added. It's optimized for replication, and provides popular extensions like PostGIS, pgRouting, pgTAP, and more for enhanced functionality. Ideal for those who prefer an unaltered Postgres experience with added features.

Self-Host Supabase PostgreSQL

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

General
3

Deploy

Copy the configuration and run it on your server.

services:
  supabase_postgres-db:
    image: bitnamilegacy/supabase-postgres:15.1.0
    environment:
      POSTGRES_DB: postgres
      POSTGRES_INITDB_ARGS: ""
      POSTGRES_MASTER_HOST: ""
      POSTGRES_MASTER_PORT_NUMBER: ""
      POSTGRES_NUM_SYNCHRONOUS_REPLICAS: ""
      POSTGRES_PASSWORD: 152ce279378715a2295dcef36f6dcb4b
      POSTGRES_PORT_NUMBER: "5432"
      POSTGRES_REPLICATION_MODE: ""
      POSTGRES_REPLICATION_PASSWORD: ""
      POSTGRES_REPLICATION_USER: ""
      POSTGRES_SYNCHRONOUS_COMMIT_MODE: on
      POSTGRES_USER: postgres
    volumes:
      - supabase_postgres-db-persistence:/bitnami/postgresql
volumes:
  supabase_postgres-db-persistence: {}

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:80

Why Self-Host Supabase PostgreSQL?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

bitnamilegacy/supabase-postgres:${app_version}

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"