Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: Update host for postgres command in self-hosted (#18110)

Kamil Ogórek4293262eb531
diff --git a/apps/docs/pages/guides/self-hosting/docker.mdx b/apps/docs/pages/guides/self-hosting/docker.mdx
index 29e6414957e..42091882422 100644
--- a/apps/docs/pages/guides/self-hosting/docker.mdx
+++ b/apps/docs/pages/guides/self-hosting/docker.mdx
@@ -72,7 +72,7 @@ You can add new Functions as `volumes/functions/<FUNCTION_NAME>/index.ts`. Resta
You can connect to the Postgres database locally on port `5432`. For example, if you have `psql` on your local machine you can run:
```bash
-psql -h localhost -p 5432 -d postgres -U postgres
+psql -h 127.0.0.1 -p 5432 -d postgres -U postgres
```
The default password is `your-super-secret-and-long-postgres-password`. You should change this as soon as possible using the [instructions below](#update-secrets). By default the database is not accessible from outside the local machine. You can [change this](#exposing-your-postgres-database) by updating the `docker-compose.yml` file.