Commit Graph
5 Commits
Author SHA1 Message Date
Bkk1234 1b6c56b47c fix(compose): default DB_PASSWORD so interpolation never fails
':?' made docker compose config/up fail whenever .env was absent (fresh
clone, different working dir, Docker Desktop UI). Falls back to a
documented dev password; prod must still set a real one.
2026-11-23 02:16:16 +07:00
Bkk1234 c412d10718 fix(docker): default WEB_HOST_PORT to 8097 (8080 and 8095 are taken on this host) 2026-11-23 02:11:57 +07:00
Bkk1234 22fdd37869 docs: Docker run instructions, env table, and compose deploy topology 2026-11-23 01:57:25 +07:00
Bkk1234 af19d04496 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
2026-11-23 01:56:39 +07:00
Bkk1234 dd65e9061f Add Julia+Postgres calculation service with shared golden vectors
- service/: Julia HTTP API (HTTP.jl + LibPQ), formulas.jl as source of truth
- service/db/001_init.sql: calculation_runs (append-only), provinces, eto_monthly
- tests/golden/vectors.json: single fixture set enforced on both JS and Julia
- .gitignore: keep secrets (DB env, contracts, financial records, ransomware note) out
- AGENTS.md: document service commands and formula-change rule
2026-11-16 01:59:22 +07:00