File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,23 @@ should be a line like `Connected to Postgres` in the logs. Note that you'll have
214214to redeploy any existing Convex functions to the new database with
215215` npx convex deploy ` .
216216
217+ ### Connecting to Postgres locally
218+
219+ Create a database called ` convex_self_hosted ` in your Postgres instance.
220+
221+ ``` sh
222+ psql postgres -c " CREATE DATABASE convex_self_hosted"
223+ ```
224+
225+ Set the ` DATABASE_URL ` environment variable to your Postgres connection string
226+ and disable SSL.
227+
228+ ``` sh
229+ export DATABASE_URL=' postgresql://<your-username>@host.docker.internal:5432'
230+ export DO_NOT_REQUIRE_SSL=1
231+ docker compose up
232+ ```
233+
217234## Optional configurations
218235
219236- The cloud-hosted product automatically redacts logs to prevent any leaking of
Original file line number Diff line number Diff line change 11services :
22 backend :
3- image : ghcr.io/get-convex/convex-backend:6c974d219776b753cd23d26f4a296629ff7c2cad
3+ image : ghcr.io/get-convex/convex-backend:62ef09aa604b0c5f873b59e0944b5e89f84b66b2
44 ports :
55 - " ${PORT:-3210}:3210"
66 - " ${SITE_PROXY_PORT:-3211}:3211"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ app = 'convex-backend'
77primary_region = ' iad'
88
99[build ]
10- image = ' ghcr.io/get-convex/convex-backend:6c974d219776b753cd23d26f4a296629ff7c2cad '
10+ image = ' ghcr.io/get-convex/convex-backend:62ef09aa604b0c5f873b59e0944b5e89f84b66b2 '
1111
1212[env ]
1313TMPDIR = ' /convex/data/tmp'
You can’t perform that action at this time.
0 commit comments