From bb0a47099f1100a30907a4d180b76edf81c77b11 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Wed, 8 Oct 2025 11:17:02 -0300 Subject: [PATCH] feat(convex): use official self-hosted backend image behind Traefik; remove CLI-based service --- stack.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/stack.yml b/stack.yml index 4c0fcc8..aa69c00 100644 --- a/stack.yml +++ b/stack.yml @@ -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