自托管
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-driven projects#
There are several other options to deploy Supabase. If you're interested in helping these projects, visit our 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.
不像由 Supabase 完全托管和操作的管理平台,分支、高级指标(超出日志)、托管备份和 PITR、分析和向量桶、ETL 以及平台管理 API 不可用。
🌐 Unlike the managed platform, which is fully hosted and operated by Supabase, branching, advanced metrics beyond logs, managed backups and PITR, analytics and vector buckets, ETL, and the platform management API are unavailable.
和本地开发不一样 #
🌐 Not the same as local development
Supabase CLI 用于运行本地开发和测试环境。这个环境并不是自托管部署:它没有经过生产环境加固,不能暴露给外部流量。
要自托管,可以使用 Docker 或社区的部署选项之一。
🌐 To self-host, use Docker or one of the community deployment options.
自托管时你的责任 #
🌐 Your responsibilities when self-hosting
当你自己托管时,你需要负责:
🌐 When you self-host, you are responsible for:
- 服务器配置和维护
- 安全加固并保持操作系统和服务更新
- 服务配置与管理
- Postgres 数据库维护
- 高可用性和可扩展性
- 备份和灾难恢复
- 监控和正常运行时间
遥测 #
🌐 Telemetry
自托管的 Supabase(通过 Docker Compose 运行)不会联网回传或收集任何遥测数据。
🌐 Self-hosted Supabase (run via Docker Compose) 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.