chore: run web service with bun runtime
This commit is contained in:
parent
2b9bc77228
commit
aec9b1ff85
2 changed files with 18 additions and 64 deletions
10
stack.yml
10
stack.yml
|
|
@ -3,7 +3,7 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
web:
|
||||
image: node:20-bullseye
|
||||
image: oven/bun:1.3.1
|
||||
# Run as non-root to avoid creating root-owned files on host mounts
|
||||
user: "1000:1000"
|
||||
working_dir: /app
|
||||
|
|
@ -14,7 +14,7 @@ services:
|
|||
- sistema_db:/app/data
|
||||
environment:
|
||||
NODE_ENV: "production"
|
||||
PNPM_STORE_DIR: "/tmp/pnpm-store"
|
||||
BUN_INSTALL_CACHE_DIR: "/tmp/bun-cache"
|
||||
# Garante instalação de devDependencies para o build (prisma CLI)
|
||||
NPM_CONFIG_PRODUCTION: "false"
|
||||
# IMPORTANTE: "NEXT_PUBLIC_*" é consumida pelo navegador (cliente). Use a URL pública do Convex.
|
||||
|
|
@ -35,6 +35,9 @@ services:
|
|||
parallelism: 1
|
||||
order: start-first
|
||||
failure_action: rollback
|
||||
resources:
|
||||
limits:
|
||||
memory: "2G"
|
||||
restart_policy:
|
||||
condition: any
|
||||
placement:
|
||||
|
|
@ -78,6 +81,9 @@ services:
|
|||
parallelism: 1
|
||||
order: start-first
|
||||
failure_action: rollback
|
||||
resources:
|
||||
limits:
|
||||
memory: "4G"
|
||||
restart_policy:
|
||||
condition: any
|
||||
placement:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue