fix(ci/deploy): stop-first no web + start script com retry de migrations e seed não fatal

This commit is contained in:
Esdras Renan 2025-10-16 00:32:26 -03:00
parent 1282621995
commit 7e8023ed87

View file

@ -6,11 +6,7 @@ services:
image: node:20-bullseye
working_dir: /app
command: >
bash -lc "corepack enable \
&& corepack prepare pnpm@9 --activate \
&& pnpm exec prisma migrate deploy \
&& pnpm auth:seed \
&& pnpm start -p 3000"
bash -lc "bash /app/scripts/start-web.sh"
volumes:
- ${APP_DIR:-/srv/apps/sistema}:/app
- sistema_db:/app/data
@ -32,7 +28,7 @@ services:
replicas: 1
update_config:
parallelism: 1
order: start-first
order: stop-first
failure_action: rollback
restart_policy:
condition: any