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
|
image: node:20-bullseye
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
command: >
|
command: >
|
||||||
bash -lc "corepack enable \
|
bash -lc "bash /app/scripts/start-web.sh"
|
||||||
&& corepack prepare pnpm@9 --activate \
|
|
||||||
&& pnpm exec prisma migrate deploy \
|
|
||||||
&& pnpm auth:seed \
|
|
||||||
&& pnpm start -p 3000"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DIR:-/srv/apps/sistema}:/app
|
- ${APP_DIR:-/srv/apps/sistema}:/app
|
||||||
- sistema_db:/app/data
|
- sistema_db:/app/data
|
||||||
|
|
@ -32,7 +28,7 @@ services:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
update_config:
|
update_config:
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
order: stop-first
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue