自托管
Install and run your own Supabase on your computer, server, or cloud infrastructure.
如果你需要完全控制你的数据、有合规要求不允许使用托管服务,或者想在隔离的环境中运行 Supabase,那么自托管是一个不错的选择。
🌐 Self-hosting is a good fit if you need full control over your data, have compliance requirements that prevent you from using managed services, or want to run Supabase in an isolated environment.
Get started#
The fastest and recommended way to self-host Supabase is to use Docker.
Community projects#
These projects are maintained by the Supabase community, not by Supabase. To get involved, see the Community page.
自托管 Supabase 有哪些不同 #
🌐 How self-hosted Supabase differs
自建 Supabase 以单个项目运行,这意味着 Studio 不支持多个组织或项目。大多数设置都是通过环境变量配置的。
🌐 Self-hosted Supabase runs as a single project, which means that Studio doesn't support multiple organizations or projects. Most settings are configured through environment variables.
当自托管时,托管平台的一些功能不可用:分支、高级指标(超出日志范围)、托管备份和时间点恢复(PITR)、分析和矢量存储桶、ETL,以及管理 API。如果你想自己收集日志和指标,可以查看社区维护的可观测性项目。
🌐 Some features of the managed platform aren't available when self-hosting: branching, advanced metrics beyond logs, managed backups and PITR, analytics and vector buckets, ETL, and the Management API. To collect logs and metrics yourself, see the community-maintained observability project.
和本地开发不一样 #
🌐 Not the same as local development
Supabase CLI 用于运行本地开发和测试环境。这个环境并不是自托管部署:它没有经过生产环境加固,不能暴露给外部流量。
要自行托管,可以使用 Docker 或社区维护的 Kubernetes 项目。
🌐 To self-host, use Docker or the community-maintained Kubernetes project.
自托管时你的责任 #
🌐 Your responsibilities when self-hosting
当你自己托管时,你需要负责:
🌐 When you self-host, you are responsible for:
- 服务器配置和维护
- 安全加固并保持操作系统和服务更新
- 服务配置与管理
- Postgres 数据库维护
- 高可用性和可扩展性
- 备份和灾难恢复
- 监控和正常运行时间
Third-party guides#
Guides written by other projects and companies. Supabase doesn't maintain them, so check that they match your version of self-hosted Supabase.
遥测 #
🌐 Telemetry
自托管的 Supabase 不会回传数据或收集任何遥测信息。
🌐 Self-hosted Supabase does not phone home or collect any telemetry.
Supabase CLI 是一个用于本地开发的独立工具,它会收集使用数据以帮助改进开发者体验。有关退出方法,请参阅CLI 遥测。
🌐 The Supabase CLI, a separate tool also used for local development, collects usage telemetry to help improve the developer experience. See CLI telemetry for opt-out methods.
支持与社区 #
🌐 Support and community
自建 Supabase 是社区支持的。
🌐 Self-hosted Supabase is community-supported.
企业自托管 #
🌐 Enterprise self-hosting
如果你是使用自托管 Supabase 的企业,我们很想听听你的意见。联系我们的增长团队讨论你的使用案例、分享反馈,或探索设计合作机会。
🌐 If you're an enterprise using self-hosted Supabase, we'd love to hear from you. Reach out to our Growth Team to discuss your use case, share feedback, or explore design partnership opportunities.