Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(service): correct Convex origin env vars and expose HTTP actions port

Torsten O'Donoghue1e5e4ae61ee4
diff --git a/templates/compose/convex.yaml b/templates/compose/convex.yaml
index 29d4144c34..8818a07dc7 100644
--- a/templates/compose/convex.yaml
+++ b/templates/compose/convex.yaml
@@ -12,14 +12,15 @@ services:
- data:/convex/data
environment:
- SERVICE_URL_BACKEND_3210
+ - SERVICE_URL_SITE_3211
- INSTANCE_NAME=${INSTANCE_NAME:-self-hosted-convex}
- INSTANCE_SECRET=${SERVICE_HEX_64_SECRET}
- CONVEX_RELEASE_VERSION_DEV=${CONVEX_RELEASE_VERSION_DEV:-}
- ACTIONS_USER_TIMEOUT_SECS=${ACTIONS_USER_TIMEOUT_SECS:-}
# URL of the Convex API as accessed by the client/frontend.
- - CONVEX_CLOUD_ORIGIN=${SERVICE_URL_DASHBOARD}
+ - CONVEX_CLOUD_ORIGIN=${SERVICE_URL_BACKEND}
# URL of Convex HTTP actions as accessed by the client/frontend.
- - CONVEX_SITE_ORIGIN=${SERVICE_URL_BACKEND}
+ - CONVEX_SITE_ORIGIN=${SERVICE_URL_SITE}
- DATABASE_URL=${DATABASE_URL:-}
- DISABLE_BEACON=${DISABLE_BEACON:?false}
- REDACT_LOGS_TO_CLIENT=${REDACT_LOGS_TO_CLIENT:?false}