feat(convex): use official self-hosted backend image behind Traefik; remove CLI-based service
This commit is contained in:
parent
55b516043f
commit
bb0a47099f
1 changed files with 8 additions and 12 deletions
20
stack.yml
20
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue