The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: warn for local development on public networks (#41298)
Han Qiao3590597c282b
diff --git a/apps/docs/content/guides/local-development.mdx b/apps/docs/content/guides/local-development.mdxindex 8545ceb1768..872f486567e 100644--- a/apps/docs/content/guides/local-development.mdx+++ b/apps/docs/content/guides/local-development.mdx@@ -114,6 +114,19 @@ As a prerequisite, you must install a container runtime compatible with Docker A4. View your local Supabase instance at [http://localhost:54323](http://localhost:54323).+<Admonition type="caution">++If your local development machine is connected to an untrusted public network, you should create a separate docker network and bind to 127.0.0.1 before starting the local development stack. This restricts network access to only your localhost machine.++```sh+docker network create -o 'com.docker.network.bridge.host_binding_ipv4=127.0.0.1' local-network+npx supabase start --network-id local-network+```++You should never expose your local development stack publicly.++</Admonition>+## Local developmentLocal development with Supabase allows you to work on your projects in a self-contained environment on your local machine. Working locally has several advantages: