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:
- traefik_public
convex:
image: node:20-bullseye
working_dir: /app
command: >
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"
convex_backend:
image: ghcr.io/get-convex/convex-backend:latest
stop_grace_period: 10s
stop_signal: SIGINT
volumes:
- /srv/apps/sistema:/app
- convex_data:/root/.convex
- convex_data:/convex/data
environment:
NODE_ENV: "production"
- RUST_LOG=info
- CONVEX_CLOUD_ORIGIN=https://convex.esdrasrenan.com.br
- CONVEX_SITE_ORIGIN=https://convex.esdrasrenan.com.br
deploy:
mode: replicated
replicas: 1