Files
convex-monorepo/docker/compose.local.yml
T
Gabriel Brown 8f09a423d4
Build and Push Next App / quality (push) Successful in 1m12s
Build and Push Next App / build-next (push) Successful in 2m20s
Read CI env from Infisical and give the local stack its own ports
CI reads Infisical staging as the read-only convexmonorepo-base-ci machine identity, runs the quality gate, and builds and pushes the image. The template is not deployed, so there is no Convex or VPS deploy step. The local stack moves to its own Compose name and ports so it runs beside the Payload template's, and it syncs the Convex runtime env. The scripts pick up Infisical account switching, dev-kill and a cache-safe CI install.
2026-10-01 14:55:35 -04:00

45 lines
1.6 KiB
YAML

name: convexmonorepo-base-local
services:
convex-backend:
image: ghcr.io/get-convex/convex-backend:${BACKEND_TAG:-latest}
container_name: convexmonorepo-base-local-convex
ports:
- '${BACKEND_PORT:-3250}:3210'
- '${SITE_PROXY_PORT:-3251}:3211'
environment:
- INSTANCE_NAME=${LOCAL_INSTANCE_NAME:-convexmonorepo_base_local}
- INSTANCE_SECRET=${LOCAL_INSTANCE_SECRET:-0000000000000000000000000000000000000000000000000000000000000000}
- CONVEX_CLOUD_ORIGIN=http://localhost:${BACKEND_PORT:-3250}
- CONVEX_SITE_ORIGIN=http://localhost:${SITE_PROXY_PORT:-3251}
- DISABLE_BEACON=true
- REDACT_LOGS_TO_CLIENT=false
- DO_NOT_REQUIRE_SSL=true
# Convex uses its own volume by default. A cloned project may opt into
# Convex-on-Postgres by configuring a separate database URL here:
# - POSTGRES_URL=postgres://user:password@postgres:5432/convex?sslmode=disable
volumes: [convex-data:/convex/data]
restart: unless-stopped
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3210/version']
start_period: 10s
interval: 5s
retries: 20
timeout: 5s
stop_grace_period: 10s
stop_signal: SIGINT
convex-dashboard:
image: ghcr.io/get-convex/convex-dashboard:${DASHBOARD_TAG:-latest}
container_name: convexmonorepo-base-local-convex-dashboard
ports: ['${DASHBOARD_PORT:-6795}:6791']
environment:
- NEXT_PUBLIC_DEPLOYMENT_URL=http://localhost:${BACKEND_PORT:-3250}
depends_on:
convex-backend:
condition: service_healthy
restart: unless-stopped
volumes:
convex-data: