From b672470bc40edfaf6ede4cd150c2bd93d048cbcf Mon Sep 17 00:00:00 2001 From: gibbyb Date: Thu, 28 Aug 2025 14:02:21 -0500 Subject: [PATCH] get convex actually running and working --- host/convex/docker/compose.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/host/convex/docker/compose.yml b/host/convex/docker/compose.yml index e2c3940..c79c582 100644 --- a/host/convex/docker/compose.yml +++ b/host/convex/docker/compose.yml @@ -2,24 +2,26 @@ networks: nginx-bridge: external: true services: - backend: + convex-backend: image: ghcr.io/get-convex/convex-backend:08139ef318b1898dad7731910f49ba631631c902 container_name: ${BACKEND_CONTAINER_NAME:-convex-backend} - hostname: convex-backend + hostname: ${BACKEND_CONTAINER_NAME:-convex-backend} domainname: convex.gbrown.org + #user: 1000:1000 networks: [nginx-bridge] #ports: [3210:3210,3211:3211] # 3210: API | 3211: Base URL volumes: [./data:/convex/data] labels: ['com.centurylinklabs.watchtower.enable=true'] - env_file: [./.env] + env_file: [.env] environment: - INSTANCE_NAME=${INSTANCE_NAME:-} - INSTANCE_SECRET=${INSTANCE_SECRET:-} - - CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-} - - CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-} - - DISABLE_BEACON=${DISABLE_BEACON:true} - - REDACT_LOGS_TO_CLIENT=${REDACT_LOGS_TO_CLIENT:true} - - DO_NOT_REQUIRE_SSL=${DO_NOT_REQUIRE_SSL:true} + - CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${PORT:-3210}} + - CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${SITE_PROXY_PORT:-3211}} + - DISABLE_BEACON=${DISABLE_BEACON:-} + - REDACT_LOGS_TO_CLIENT=${REDACT_LOGS_TO_CLIENT:-} + - DO_NOT_REQUIRE_SSL=${DO_NOT_REQUIRE_SSL:-} + #- DATABASE_URL=${DATABASE_URL:-} stdin_open: true tty: true restart: unless-stopped @@ -30,21 +32,22 @@ services: stop_grace_period: 10s stop_signal: SIGINT - dashboard: + convex-dashboard: image: ghcr.io/get-convex/convex-dashboard:33cef775a8a6228cbacee4a09ac2c4073d62ed13 container_name: ${DASHBOARD_CONTAINER_NAME:-convex-dashboard} - hostname: convex-dashboard + hostname: ${DASHBOARD_CONTAINER_NAME:-convex-dashboard} domainname: dashboard.convex.gbrown.org + #user: 1000:1000 networks: [nginx-bridge] stop_grace_period: 10s stop_signal: SIGINT - #ports: [6791:6791] # Dashboard + ports: [6791:6791] # Dashboard labels: ['com.centurylinklabs.watchtower.enable=true'] env_file: [.env] environment: - NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://${BACKEND_CONTAINER_NAME:-convex-backend}:${PORT:-3210}} depends_on: - backend: + convex-backend: condition: service_healthy stdin_open: true tty: true