Skip to content

Commit 1dd78e9

Browse files
emmaling27Convex, Inc.
authored andcommitted
Release convex-backend docker image (#34391)
GitOrigin-RevId: b3ec5de839150f49dc2f06b1a077a3941592cecf
1 parent a94f204 commit 1dd78e9

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

self-hosted/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,23 @@ should be a line like `Connected to Postgres` in the logs. Note that you'll have
214214
to 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

self-hosted/docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
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"

self-hosted/fly/backend/fly.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ app = 'convex-backend'
77
primary_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]
1313
TMPDIR = '/convex/data/tmp'

0 commit comments

Comments
 (0)