chore: add node22 bun base image and tune start
This commit is contained in:
parent
eebe1a717f
commit
43548ab4b8
3 changed files with 73 additions and 32 deletions
|
|
@ -3,7 +3,7 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
web:
|
||||
image: oven/bun:1.3.2
|
||||
image: sistema_web:node22-bun
|
||||
# Rodamos como root para permitir apt-get (Node 22, toolchain) no boot
|
||||
user: "root"
|
||||
working_dir: /app
|
||||
|
|
@ -31,6 +31,10 @@ services:
|
|||
REPORTS_CRON_BASE_URL: "${REPORTS_CRON_BASE_URL}"
|
||||
# Mantém o SQLite fora do repositório
|
||||
DATABASE_URL: "file:/app/data/db.sqlite"
|
||||
# Evita apt-get na inicialização porque a imagem já vem com toolchain pronta
|
||||
SKIP_APT_BOOTSTRAP: "true"
|
||||
# Desativa rebuild a cada start (já reempacotado para Node 22 na imagem)
|
||||
SKIP_SQLITE_REBUILD: "true"
|
||||
# Usado para forçar novo rollout a cada deploy (setado pelo CI)
|
||||
RELEASE_SHA: "${RELEASE_SHA:-dev}"
|
||||
deploy:
|
||||
|
|
@ -66,7 +70,7 @@ services:
|
|||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
start_period: 120s
|
||||
|
||||
convex_backend:
|
||||
image: sistema_convex_backend:1.29.2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue