build: Dockerfile + docker-compose with ports driven by .env
- web: nginx:alpine serving the static SPA, listens on WEB_CONTAINER_PORT rendered from deploy/nginx.conf.template (envsubst), gzip + cache headers, /healthz, proxies /api/ to the api container - api: julia:1.13-bookworm, libpq5 + curl, Pkg.instantiate from the committed Manifest, listens on FARM_API_PORT, healthcheck on /api/v1/health - db: postgres:17-alpine with 001_init.sql mounted for first-run schema, pg_isready healthcheck, named volume - every port comes from .env (container port + host port separated); .env.example committed, .env ignored
This commit is contained in:
1 parent
05fd682e33
commit
af19d04496
8 files changed
+297
No files matched your search
@@ -105,3 +105,6 @@ build/
|
||||
# Document/ (เอกสารวิธีคำนวณที่เครื่องคำนวณต้องอ้างอิง) · PWA-fam-plans/{dockerfile,nginx}
|
||||
# AGENTS.md · DESIGN.md · SYSTEM-DESIGN.md · service/README.md
|
||||
# =====================================================================
|
||||
|
||||
# docker compose env (มีรหัส DB)
|
||||
.env
|
||||
Reference in new issue
Block a user