Self-Host Production Supabase on Netcup EPYC Root Servers
Self-hosting the full 12-container Supabase stack—PostgreSQL, Kong/Envoy, GoTrue Auth, PostgREST, Realtime, Storage, Studio, and Supavisor—requires at least 8 GB RAM and high-IOPS NVMe storage. Netcup Root-Server RS 1000 G12.5 (4 dedicated AMD EPYC™ 9645 or 9655 cores, 8 GB DDR5 ECC, 2.5 Gbit/s Traffic Flatrate) costs €15.22/mo net effective on 12M with 2 free months (6874nc; €15.52/mo net on 24M), saving €1,197/yr vs Supabase Pro plus dedicated compute.
| Tier | Workload Scale | CPU / RAM / Disk | Matched Netcup Plan |
|---|---|---|---|
| Starter · Trimmed Core Stack | Dev/Staging · Up to 15,000 MAUs (Analytics/Logflare disabled) | 4 vCores (Shared) · 8 GB RAM · 128 GB | VPS 1000 G12.5 (€11.17/mo net eff.) |
| Production · Full 12-Container BaaS | 100,000+ MAUs · Kong, GoTrue, PostgREST, Realtime, Storage & Supavisor | 4 Dedicated EPYC 9645/9655 · 8 GB RAM · 128 GB | RS 1000 G12.5 (€15.22/mo net eff.) |
| Scale · High-Concurrency & pgvector AI | 500,000+ MAUs · HNSW Vector Indexes + Logflare/Vector Observability | 8 Dedicated EPYC 9645/9655 · 16 GB RAM · 256 GB | RS 2000 G12.5 (€31.35/mo net eff.) |
# Place alongside official supabase/docker/docker-compose.yml on Netcup RS 1000/2000
services:
kong:
ports: !override
- "127.0.0.1:8000:8000/tcp"
mem_limit: 768m
db:
image: supabase/postgres:15.8.1.060
shm_size: 512mb
command:
- postgres
- -c
- config_file=/etc/postgresql/postgresql.conf
- -c
- log_min_messages=fatal
- -c
- shared_buffers=2GB
- -c
- effective_cache_size=5GB
- -c
- work_mem=16MB
- -c
- maintenance_work_mem=512MB
- -c
- wal_level=logical
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-h", "127.0.0.1"]
interval: 5s
timeout: 5s
retries: 10
supavisor:
environment:
POOLER_DEFAULT_POOL_SIZE: ${POOLER_DEFAULT_POOL_SIZE:-25}
POOLER_MAX_CLIENT_CONN: ${POOLER_MAX_CLIENT_CONN:-500}
POOLER_TENANT_ID: ${POOLER_TENANT_ID:-netcup-prod}
mem_limit: 768m
realtime:
mem_limit: 768m
imgproxy:
environment:
IMGPROXY_CONCURRENCY: "4"
IMGPROXY_MAX_SRC_RESOLUTION: "32"
mem_limit: 512m- • Best Seller: 2 Months Completely Free (€36.52 net saved on 12M)
- • 4 Dedicated AMD EPYC™ 9645 or 9655 cores + 8 GB DDR5 ECC
- • 2.5 Gbit/s Unlimited Traffic (>3 TB/24h → 300 Mbit/s); New & Existing Users
Works for new & existing accounts — opens directly in an empty Netcup cart.
Why Does Self-Hosted Supabase Need at Least 8 GB RAM Across 12+ Containers?
Unlike a standalone PostgreSQL container that idles under 150 MB of RAM, self-hosted Supabase orchestrates 12 to 14 distinct microservices simultaneously across Go, Haskell, Elixir/BEAM, Node.js, Deno, and C runtimes. Even after Supabase moved Logflare and Vector analytics into an optional docker-compose.logs.yml overlay, a clean cold boot of PostgreSQL 15.8, Kong (or Envoy) API Gateway, GoTrue Auth, PostgREST, Realtime, Storage API, Imgproxy, Postgres-Meta, Edge Runtime, Studio, and Supavisor consumes 2.9 GB to 3.6 GB of baseline memory before serving a single user query. On a 4 GB VPS, concurrent Next.js serverless spikes, BEAM virtual machine allocations inside Realtime and Supavisor, plus imgproxy WebP resizing push Linux kernel memory past 95%, triggering OOM-killer crashes against postgres. Provisioning 8 GB of DDR5 ECC RAM on Netcup RS 1000 G12.5 reserves 2 GB for PostgreSQL shared_buffers and leaves 2.5 GB of clean OS page-cache headroom.
Two Erlang/Elixir BEAM virtual machines—supabase/realtime (broadcasting Postgres logical replication changes over WebSockets) and supabase/supavisor (handling transaction-mode connection pooling on port 6543)—pre-allocate scheduler threads proportional to host CPU core counts. Setting explicit mem_limit: 768m guardrails in docker-compose.override.yml prevents BEAM heap expansion from starving PostgreSQL during WebSocket reconnect storms.
If you enable the optional observability stack (docker compose -f docker-compose.yml -f docker-compose.logs.yml up -d), Logflare (Elixir) and Vector (Rust) consume an additional 1.4 GB to 2.1 GB of RAM—making the 16 GB Netcup RS 2000 G12.5 (€31.35/mo effective net) the mandatory tier for full SQL log analytics.
| Microservice Group | Runtime | Idle RAM | Active Production RAM |
|---|---|---|---|
| db (supabase/postgres 15.8 + extensions) | C / Postgres | 420 MB | 2,400 MB (2 GB shared_buffers) |
| supavisor + realtime (Pooler & CDC) | Elixir / BEAM | 680 MB | 1,350 MB |
| kong / envoy + gotrue + postgrest | Lua/C++ / Go / Haskell | 490 MB | 820 MB |
| storage-api + imgproxy + edge-runtime | Node / Go / Deno | 460 MB | 950 MB |
| studio + postgres-meta | Next.js / Node | 380 MB | 580 MB |
Why Do Dedicated AMD EPYC™ 9645 or 9655 Cores Beat Shared VPS Plans for Supabase?
Supabase relies heavily on PostgreSQL Write-Ahead Logging (wal_level=logical) so that Realtime can decode row-level INSERT, UPDATE, and DELETE events while enforcing Row-Level Security (RLS) policies per subscribed JWT client. Evaluating complex RLS EXISTS subqueries across 1,000 concurrent WebSocket subscribers multiplies CPU instruction execution and random 4K disk reads on every transaction commit. On oversold shared-vCPU cloud instances, hypervisor CPU steal spikes p99 PostgREST API latencies from 8 milliseconds to over 220 milliseconds whenever neighboring tenants burst. Netcup Root-Server RS 1000 G12.5 assigns 4 dedicated physical AMD EPYC™ 9645 or 9655 cores paired with enterprise RAID NVMe storage and a 2.5 Gbit/s port in EU & Manassas USA (1 Gbit/s in Singapore) with Traffic Flatrate (Unlimited—temporary throttle to 300 Mbit/s applies only if 24h traffic exceeds 3 TB and lifts automatically) for €15.22/mo effective net after applying the 2-months-free 6874nc voucher ("No preference Europe" carries €0.00 surcharge across Nuremberg DE / Vienna AT). Dedicated physical cores guarantee deterministic RLS policy evaluation, rapid pgvector HNSW index builds, and sub-2ms local NVMe fsync commit latencies around the clock.
Docker bypasses UFW firewall rules when binding 0.0.0.0:8000. Override Kong ports to 127.0.0.1:8000:8000 in docker-compose.override.yml, place Caddy or Traefik in front with HTTPS TLS 1.3, and protect the Supabase Studio /project/default route behind HTTP Basic Auth or Tailscale WireGuard.
How Does Netcup RS 1000 Compare Against Supabase Pro + Compute Add-Ons?
Supabase Cloud Pro starts at $25/mo, which includes only a $10 compute credit covering a shared-CPU Micro instance with 1 GB of RAM, 8 GB of database storage, 250 GB bandwidth, and 100,000 Monthly Active Users (MAUs). Upgrading a single production Supabase Cloud project to match the 4 dedicated cores and 8 GB RAM of Netcup RS 1000 G12.5 requires the Dedicated Large Compute Add-on ($110/mo), pushing baseline monthly billing to $125/mo (~€115/mo) before counting $0.125/GB disk overages, $0.09/GB egress fees, or $0.00325 per extra MAU. Hosting Apache-2.0 Supabase on Netcup RS 1000 G12.5 locks total infrastructure expenditure at €18.26/mo regular 12M net (€15.52/mo net on 24M)—or €15.22/mo effective net across the first 12 months with 6874nc—delivering generous local NVMe storage, unlimited MAUs, unlimited projects via Coolify or schema isolation, and a 2.5 Gbit/s Traffic Flatrate (Unlimited, <3 TB/24h unthrottled).
- Zero Per-MAU Tax: Scale consumer B2C or freemium apps past 500,000 registered GoTrue users without $1,300/mo auth surcharges.
- 16x Included NVMe Disk: Store 100+ GB of Postgres tables, pgvector embeddings, and Storage buckets without $0.125/GB/mo add-ons.
- No Auto-Pausing Staging Environments: Spin up dev and staging branches alongside production without Free-tier 7-day hibernation.
- Native Supavisor Pooling: Multiplex 500+ serverless Vercel or Cloudflare Workers connections onto 25 Postgres backend processes.
How Do You Secure Supabase JWT Secrets, Supavisor Pooling, and PITR Backups?
Before executing the first docker compose up -d command on your Netcup Root Server, operators must replace every default demo credential inside .env—specifically POSTGRES_PASSWORD, JWT_SECRET (minimum 40 cryptographically random characters), ANON_KEY, SERVICE_ROLE_KEY, DASHBOARD_PASSWORD, and SECRET_KEY_BASE—using Supabase’s official generator script (sh ./utils/generate-keys.sh). Leaving the default upstream ANON_KEY active in production is the number-one security vulnerability discovered across self-hosted Supabase audits, granting automated internet scanners instant unauthenticated PostgREST table access. For serverless frontends running on Cloudflare Workers or Next.js, connect Prisma or Drizzle ORM to Supavisor on port 6543 (?pgbouncer=true) for stateless transaction pooling while reserving port 5432 exclusively for schema migrations. Finally, configure automated Point-in-Time Recovery (PITR) using wal-g or daily pg_dumpall --clean archives shipped via Restic to external S3-compatible object storage alongside /volumes/storage bucket snapshots so relational database rows and user-uploaded media files remain transactionally synchronized.
git clone --depth 1 https://github.com/supabase/supabase.git /opt/supabase
cd /opt/supabase/docker && cp .env.example .env
# Automatically roll cryptographic JWT_SECRET, ANON_KEY, SERVICE_ROLE_KEY & DB password
sh ./utils/generate-keys.sh
# Disable heavy Logflare analytics by starting only core docker-compose.yml + override
docker compose -f docker-compose.yml -f docker-compose.override.yml pull
docker compose -f docker-compose.yml -f docker-compose.override.yml up -dPopular Self-Hosted App Blueprints
Self-hosting Coolify or Dokploy transforms a Linux server into an automated Git-push PaaS with Traefik/Caddy SSL, PR previews, and managed databases, requiring 4 cores and 8 GB RAM to survive Nixpacks build spikes. Netcup RS 1000 G12.5 (4 dedicated AMD EPYC™ 9645 or 9655 cores, €15.22/mo net eff. on 12M with 2 free months via 6874nc; €15.52/mo net on 24M) replaces €85+/mo Vercel and Render bills.
Self-hosting n8n in Queue Mode with PostgreSQL 16 and Redis 7 requires 4 vCores and 4–8 GB RAM for high-throughput webhook reliability. Deploying n8n Community Edition on Netcup VPS 1000 G12.5 (4 vCores, 8 GB RAM, 2.5 Gbit/s Traffic Flatrate) costs €11.17/mo net effective (€13.29 gross; regular 12M €12.18/mo net / €14.49 gross, €10.35/mo net on 24M) with a 1-month-free voucher, replacing €50–€60/mo n8n Cloud Pro execution caps and saving €526/yr.
Self-hosting Dify alongside a LiteLLM or OpenClaw AI Gateway orchestrates 9–11 containers—API, Celery workers, Plugin Daemon, Sandbox, Redis, PostgreSQL, and Weaviate/pgvector—requiring 8–16 GB RAM. Netcup RS 2000 G12.5 (8 dedicated AMD EPYC™ 9645 or 9655 cores, 16 GB DDR5 ECC, 2.5 Gbit/s Traffic Flatrate) costs €31.35/mo net effective on 12M with 1 free month via 6875nc (€29.07/mo net on 24M), replacing €145/mo Dify Team SaaS limits.
Self-hosting Nextcloud Hub (PHP-FPM, Redis, PostgreSQL 16, and Collabora Office) on a Netcup RS 1000 G12.5 (4 dedicated AMD EPYC™ 9645 or 9655 cores, 8 GB DDR5 ECC RAM, local NVMe, 2.5 Gbit/s Traffic Flatrate) costs €15.22/month net effective with the 2-months-free voucher (6874nc), replacing €165/month Microsoft 365 / Dropbox fees under 100% German/Austrian GDPR sovereignty.
Frequently Asked Questions
Can I host multiple independent Supabase projects on one Netcup Root Server?
A single official Supabase Docker Compose stack runs one multi-service tenant (~3.2 GB RAM). To run 2–3 completely isolated Supabase stacks on one server (with separate Kong ports and Studio instances), choose the 16 GB Netcup RS 2000 G12.5 (€31.35/mo net) and deploy via Coolify or Dokploy one-click templates.
Did Supabase replace Kong with Envoy in self-hosted Docker Compose?
Recent Supabase self-hosting releases support transitioning API gateway routing toward Envoy while preserving full backward compatibility with Kong configurations. Regardless of whether your release tag uses Kong or Envoy on port 8000, always bind it to 127.0.0.1:8000 behind Caddy or Traefik for automated Let’s Encrypt TLS.
How do I configure transactional SMTP emails for GoTrue magic links and sign-ups?
Edit SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, SMTP_ADMIN_EMAIL, and SITE_URL=https://app.yourdomain.com inside /opt/supabase/docker/.env, then run docker compose up -d auth to recreate GoTrue. You can pair GoTrue with Amazon SES, Resend, or a self-hosted Netcup Mailcow server.
Why does Prisma fail with "prepared statement already exists" on Supavisor?
Supavisor runs in transaction pooling mode on port 6543, where backend PostgreSQL connections are shared across requests. Append ?pgbouncer=true&connection_limit=10 to DATABASE_URL for runtime queries, and set Prisma’s DIRECT_URL to port 5432 so prisma migrate deploy bypasses transaction pooling.