feat(docker): Dockerfile + docker-compose (พอร์ตมาจาก env PORT/HOST_PORT)
- Dockerfile 3 stage: deps (pnpm + build tools สำหรับ node-pty) → build (agent-native build) → runtime (node:22-bookworm-slim, user node, HEALTHCHECK ตาม PORT) - docker-compose.yml: PORT = พอร์ตในคอนเทนเนอร์, HOST_PORT = พอร์ตที่แมปออก host (8080 บนเครื่องนี้ถูกยึด จึงตั้งต้นที่ 8095), TZ, mount ./data เก็บ content/uploads/analytics/pglite - .dockerignore ตัด node_modules/.output/data/.env ออกจาก build context - README: section "รันด้วย Docker" + ตาราง env; .env.example: PORT/HOST_PORT
This commit is contained in:
1 parent
d1e76ab2be
commit
ba51bdfb02
5 files changed
+131
No files matched your search
@@ -0,0 +1,27 @@
|
||||
.git
|
||||
.gitignore
|
||||
node_modules
|
||||
**/node_modules
|
||||
.output
|
||||
build
|
||||
.build-old
|
||||
.build.old
|
||||
static-export
|
||||
.deploy-tmp
|
||||
.react-router
|
||||
.generated
|
||||
.agent-native
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
data
|
||||
logs
|
||||
*.log
|
||||
.DS_Store
|
||||
.vscode
|
||||
.idea
|
||||
netlify.toml
|
||||
Dockerfile
|
||||
docker-compose.yml
|
||||
README.md
|
||||
docs/architecture.html
|
||||
Reference in new issue
Block a user