fix(ci/deploy): stop-first no web + start script com retry de migrations e seed não fatal
This commit is contained in:
parent
1282621995
commit
7e8023ed87
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue