master-zapier-plan-draft/harness/compose.yaml
George Lambert b4150c8250 Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe),
packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier
(CLI app), vendor/zapier-platform, and research/zapier vendor corpus.

Gate 0 structure checks pass. Product code and research are not yet wired.
2026-09-09 02:37:36 -04:00

40 lines
1 KiB
YAML

# Local disconnected stack (PR 3+). Zappier commercial edge is added in PR 4.
# Middleware HTTP can run without NATS when NATS_ENABLED=false.
services:
nats:
image: nats:2.10
command: ["-js", "-m", "8222"]
ports:
- "4222:4222"
- "8222:8222"
middleware:
build: ../packages/verae-zapier-middleware
ports:
- "3100:3100"
environment:
PORT: "3100"
VERAE_API_BASE_URL: ${VERAE_API_BASE_URL:-http://mock-verae:8080}
MOCK_VERAE: ${MOCK_VERAE:-true}
NATS_ENABLED: ${NATS_ENABLED:-false}
NATS_URL: nats://nats:4222
TOKEN_SECRET: ${TOKEN_SECRET:-dev-secret}
DEBUG_VERAE: ${DEBUG_VERAE:-}
depends_on:
- nats
zappier:
image: node:20
working_dir: /app
volumes:
- ../packages/zappier:/app
command: ["npx", "ts-node", "src/index.ts"]
ports:
- "3000:3000"
environment:
PORT: "3000"
ZAPPIER_DB: /app/data/zappier.db
ADMIN_KEY: ${ADMIN_KEY:-admin-dev-key}
depends_on:
- middleware