services: postgres: image: postgres:15 restart: always environment: POSTGRES_USER: convexdbuser POSTGRES_PASSWORD: f1f1d2d2b0Aa. POSTGRES_DB: convex_self_hosted ports: - "5433:5432" volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U convexdbuser -d convex_self_hosted"] interval: 5s timeout: 5s retries: 10 backend: image: ghcr.io/get-convex/convex-backend:5143fec81f146ca67495c12c6b7a15c5802c37e2 ports: - "${PORT:-3210}:3210" - "${SITE_PROXY_PORT:-3211}:3211" volumes: - data:/convex/data environment: - INSTANCE_NAME=${INSTANCE_NAME:-} - INSTANCE_SECRET=${INSTANCE_SECRET:-} - CONVEX_RELEASE_VERSION_DEV=${CONVEX_RELEASE_VERSION_DEV:-} - ACTIONS_USER_TIMEOUT_SECS=${ACTIONS_USER_TIMEOUT_SECS:-} - CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-http://127.0.0.1:3210} - CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-http://127.0.0.1:3211} - POSTGRES_URL=postgresql://convexdbuser:f1f1d2d2b0Aa.@postgres:5432 - DO_NOT_REQUIRE_SSL=1 - DISABLE_BEACON=${DISABLE_BEACON:-} - REDACT_LOGS_TO_CLIENT=${REDACT_LOGS_TO_CLIENT:-} - RUST_LOG=${RUST_LOG:-info} - RUST_BACKTRACE=${RUST_BACKTRACE:-} depends_on: postgres: condition: service_healthy healthcheck: test: curl -f http://localhost:3210/version interval: 5s start_period: 5s dashboard: image: ghcr.io/get-convex/convex-dashboard:5143fec81f146ca67495c12c6b7a15c5802c37e2 ports: - "${DASHBOARD_PORT:-6791}:6791" environment: - NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://127.0.0.1:3210} depends_on: backend: condition: service_healthy volumes: data: pgdata: