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:
Bkk1234 committed 2026-11-21 20:59:44 +07:00
1 parent d1e76ab2be
commit ba51bdfb02
5 files changed
+131

No files matched your search

+6
View File
@@ -13,3 +13,9 @@ PING_MESSAGE=pong
# โดเมนหลักของเว็บ (canonical / OG / sitemap) — เว้นว่างได้ ระบบจะใช้ SHARE_ORIGIN ต่อ
# SITE_URL= # ไม่ต้องตั้ง — ระบบ derive จาก request (ตั้งเมื่อต้องบังคับโดเมนเท่านั้น)
# Docker — พอร์ตในคอนเทนเนอร์ (Nitro ฟังพอร์ตนี้)
# PORT=8080
# Docker — พอร์ตที่แมปออกเครื่อง host
# HOST_PORT=8095