Getting Started
Production-ready Docker Compose setup for self-hosting Supabase with automated secret management.
⚠️ For self-hosted deployments only. Using Supabase Cloud? See the official docs.
Prerequisites
- Docker Engine (v24+)
- Docker Compose (v2+)
- Git
- 2GB RAM Minimum
Quick Start
git clone https://github.com/Song-JunHyeong/supabase-sf.git cd supabase-sf docker compose up -d
Access Points
Dashboard
http://localhost
Default Username
supabase
Default Password
Check DASHBOARD_PASSWORD in .env
MCP Connection
docker logs supabase-mcp-guide
API Endpoints
All endpoints are auto-configured and accessible via Kong API Gateway (port 8000).
| Endpoint | URL | Description |
|---|---|---|
| REST | http://<your-domain>:8000/rest/v1/ | PostgREST API |
| Auth | http://<your-domain>:8000/auth/v1/ | Authentication (GoTrue) |
| Storage | http://<your-domain>:8000/storage/v1/ | File Storage |
| Realtime | http://<your-domain>:8000/realtime/v1/ | WebSocket subscriptions |
| Functions | http://<your-domain>:8000/functions/v1/ | Edge Functions |
| GraphQL | http://<your-domain>:8000/graphql/v1 | GraphQL API |
| Analytics | http://<your-domain>:8000/analytics/v1/ | Logflare Analytics |
💡 Tip: Two API keys are auto-generated: ANON_KEY (public) and SERVICE_ROLE_KEY (admin). Both work across all endpoints.
VPS Panel Deployment
When deploying via EasyPanel, Coolify, or similar:
| Setting | Value |
|---|---|
| Protocol | HTTP |
| Port | 8000 |
| Compose Service | kong |