Make it so that we can have dev env for convex too

This commit is contained in:
2025-09-08 12:51:21 -05:00
parent c227d42e5e
commit 5485f3d28f
2 changed files with 35 additions and 26 deletions

View File

@@ -1,22 +1,22 @@
networks: networks:
nginx-bridge: ${NETWORK:-nginx-bridge}:
external: true external: true
services: services:
convex-backend: convex-backend:
image: ghcr.io/get-convex/convex-backend:08139ef318b1898dad7731910f49ba631631c902 image: ghcr.io/get-convex/convex-backend:${BACKEND_TAG:-00bd92723422f3bff968230c94ccdeb8c1719832}
container_name: ${BACKEND_CONTAINER_NAME:-convex-backend} container_name: ${BACKEND_CONTAINER_NAME:-convex-backend}
hostname: ${BACKEND_CONTAINER_NAME:-convex-backend} hostname: ${BACKEND_CONTAINER_NAME:-convex-backend}
domainname: convex.gbrown.org domainname: ${BACKEND_DOMAIN_NAME:-convex.gbrown.org}
#user: 1000:1000 networks: ['${NETWORK}']
networks: [nginx-bridge] #user: '1000:1000'
#ports: [3210:3210,3211:3211] # 3210: API | 3211: Base URL #ports: ['${BACKEND_PORT:-3210}:3210','${SITE_PROXY_PORT:-3211}:3211']
volumes: [./data:/convex/data] volumes: [./data:/convex/data]
labels: ['com.centurylinklabs.watchtower.enable=true'] labels: ['com.centurylinklabs.watchtower.enable=true']
env_file: [.env] env_file: ['.env']
environment: environment:
- INSTANCE_NAME=${INSTANCE_NAME:-} - INSTANCE_NAME
- INSTANCE_SECRET=${INSTANCE_SECRET:-} - INSTANCE_SECRET
- CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${PORT:-3210}} - CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${BACKEND_PORT:-3210}}
- CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${SITE_PROXY_PORT:-3211}} - CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${SITE_PROXY_PORT:-3211}}
- DISABLE_BEACON=${DISABLE_BEACON:-} - DISABLE_BEACON=${DISABLE_BEACON:-}
- REDACT_LOGS_TO_CLIENT=${REDACT_LOGS_TO_CLIENT:-} - REDACT_LOGS_TO_CLIENT=${REDACT_LOGS_TO_CLIENT:-}
@@ -33,15 +33,13 @@ services:
stop_signal: SIGINT stop_signal: SIGINT
convex-dashboard: convex-dashboard:
image: ghcr.io/get-convex/convex-dashboard:33cef775a8a6228cbacee4a09ac2c4073d62ed13 image: ghcr.io/get-convex/convex-dashboard:${DASHBOARD_TAG:-33cef775a8a6228cbacee4a09ac2c4073d62ed13}
container_name: ${DASHBOARD_CONTAINER_NAME:-convex-dashboard} container_name: ${DASHBOARD_CONTAINER_NAME:-convex-dashboard}
hostname: ${DASHBOARD_CONTAINER_NAME:-convex-dashboard} hostname: ${DASHBOARD_CONTAINER_NAME:-convex-dashboard}
domainname: dashboard.convex.gbrown.org domainname: ${DASHBOARD_DOMAIN_NAME:-dashboard.${BACKEND_DOMAIN_NAME:-convex.gbrown.org}}
#user: 1000:1000 #user: 1000:1000
networks: [nginx-bridge] networks: ['${NETWORK}']
stop_grace_period: 10s ports: ['${DASHBOARD_PORT:-6791}:6791']
stop_signal: SIGINT
ports: [6791:6791] # Dashboard
labels: ['com.centurylinklabs.watchtower.enable=true'] labels: ['com.centurylinklabs.watchtower.enable=true']
env_file: [.env] env_file: [.env]
environment: environment:
@@ -52,3 +50,6 @@ services:
stdin_open: true stdin_open: true
tty: true tty: true
restart: unless-stopped restart: unless-stopped
stop_grace_period: 10s
stop_signal: SIGINT

View File

@@ -1,15 +1,23 @@
BACKEND_CONTAINER_NAME= NETWORK=nginx-bridge
DASHBOARD_CONTAINER_NAME= BACKEND_TAG=00bd92723422f3bff968230c94ccdeb8c1719832
INSTANCE_NAME= BACKEND_CONTAINER_NAME=tt-convex-backend
CONVEX_CLOUD_ORIGIN= BACKEND_DOMAIN_NAME=convex.gbrown.org
CONVEX_SITE_ORIGIN= #BACKEND_PORT=
DISABLE_BEACON= #SITE_PROXY_PORT=
REDACT_LOGS_TO_CLIENT= DASHBOARD_TAG=33cef775a8a6228cbacee4a09ac2c4073d62ed13
DO_NOT_REQUIRE_SSL= DASHBOARD_CONTAINER_NAME=tt-convex-dashboard
NEXT_PUBLIC_DEPLOYMENT_URL= DASHBOARD_DOMAIN=dashboard.convex.gbrown.org
#DASHBOARD_PORT
INSTANCE_NAME=Convex.gib
#INSTANCE_SECRET=
CONVEX_CLOUD_ORIGIN=https://api.convex.gbrown.org
CONVEX_SITE_ORIGIN=https://convex.gbrown.org
DISABLE_BEACON=true
REDACT_LOGS_TO_CLIENT=true
DO_NOT_REQUIRE_SSL=true
NEXT_PUBLIC_DEPLOYMENT_URL=https://api.convex.gbrown.org
#POSTGRES_URL= #POSTGRES_URL=
#DATABASE_URL= #DATABASE_URL=
#INSTANCE_SECRET=
#CONVEX_RELEASE_VERSION_DEV= #CONVEX_RELEASE_VERSION_DEV=
#ACTIONS_USER_TIMEOUT_SECS= #ACTIONS_USER_TIMEOUT_SECS=
#MYSQL_URL= #MYSQL_URL=