百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

fastabase

> 数据库
开源

在 AWS 上自行安装 Supabase 并使用 PlanetScale Postgres 作为数据库提供程序。

195 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

在 AWS 上自行安装 Supabase 并使用 PlanetScale Postgres 作为数据库提供程序。

Fastabase

Fastabase is a solution to self-host Supabase on AWS and use PlanetScale Postgres as the database provider.

Overview

Fastabase is built using several components:

  • SST to orchestrate the deployment to AWS
  • OpenNext to deploy Supabase Studio as a serverless component
  • Supabase components like Storage, Auth, etc.

Architecture

  • Most of the Supabase components are deployed as Docker containers to ECS Fargate
  • Entrypoint for Supabase API is an Application Load Balancer behind a CloudFront distribution
  • Amazon SES SMTP servers are used for sending emails
  • Supabase Studio is deployed using OpenNext
    • Studio is protected by user/password auth via a CloudFront function

Prerequisites

  1. Install Node.js 22 and pnpm
  2. PlanetScale:
    1. Go to Cluster configuration -> Extensions and enable pg_stat_statements and pg_cron extensions.
    2. Go to Cluster configuration -> Parameters and set max_client_conn to at least 50.

Deployment

  1. Clone this repository and cd into it.

  2. Init Git submodules:

    bash
    git submodule update --init
  3. Create a config.yaml configuration file:

    bash
    cp config.yaml.example config.yaml
  4. Fill in the values in config.yaml.

  5. Install the dependencies:

    bash
    pnpm i
  6. Set up the AWS credentials:

    bash
    export AWS_PROFILE=

    [!TIP] To learn how to set up the AWS credentials in your terminal, please refer to the AWS documentation.

  7. Run the deployment:

    bash
    pnpm run deploy

    [!WARNING] SST deploys resources to a certain stage. This allows you to deploy multiple copies of your app in the same account.

    By default, the stage name is set to the username on your local machine. You can specify a different stage name with pnpm run deploy --stage .

Removal

To remove a deployed Fastabase instance, run:

bash
pnpm run remove

[!NOTE] If you used a non-default stage name during deployment, you also need to provide it here with pnpm run remove --stage .

Roadmap

Core Supabase components

  • Auth
  • Storage
  • PostgREST
  • Imgproxy
  • Pg-meta
  • Logs
  • Realtime
  • Edge functions

Customization

  • OpenAI API key
  • External auth providers
  • Custom domain

Improvements

  • Show real DB credentials in the Studio's "Connect" dialog (currently hardcoded to localhost in Supabase's codebase)

Notes

  • By default, Amazon SES is in sandbox mode, which means you can only send emails from and to verified email addresses. Make sure to exit the sandbox mode before sending emails to real users.

  • Logs and Realtime components currently do not support connecting to Postgres with SSL, so they are connecting to PlanetScale via Envoy that serves as an SSL proxy. Envoy is deployed as an ECS service. Once the SSL support is implemented in Logs and Realtime components, the Envoy service will be removed.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptawsplanetscalepostgrespulumi

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库