feat(convex): use official self-hosted backend image behind Traefik; remove CLI-based service

This commit is contained in:
Esdras Renan 2025-10-08 11:17:02 -03:00
parent 55b516043f
commit bb0a47099f

View file

@ -38,20 +38,16 @@ services:
networks: networks:
- traefik_public - traefik_public
convex: convex_backend:
image: node:20-bullseye image: ghcr.io/get-convex/convex-backend:latest
working_dir: /app stop_grace_period: 10s
command: > stop_signal: SIGINT
bash -lc "corepack enable \
&& corepack prepare pnpm@9 --activate \
&& pnpm install --frozen-lockfile \
&& set -a && . ./.env && set +a \
&& pnpm exec convex dev --configure new --project sistema-de-chamados --dev-deployment local"
volumes: volumes:
- /srv/apps/sistema:/app - convex_data:/convex/data
- convex_data:/root/.convex
environment: environment:
NODE_ENV: "production" - RUST_LOG=info
- CONVEX_CLOUD_ORIGIN=https://convex.esdrasrenan.com.br
- CONVEX_SITE_ORIGIN=https://convex.esdrasrenan.com.br
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1