veritas-kanban/docker-compose.yml
Brad Groux 1ca172e985 fix: strip double-wrapped envelope from tool-policies routes
The responseEnvelopeMiddleware already wraps all res.json() calls in
{success, data, meta}. The tool-policies routes were manually wrapping
too, causing result.data to be {success, data:[...]} instead of [...].

This crashed the ToolPoliciesTab: policies.map is not a function.
2026-02-10 06:30:11 -06:00

43 lines
1.5 KiB
YAML

# =============================================================================
# Veritas Kanban — Docker Compose (Local Testing)
# =============================================================================
# Usage:
# docker compose up --build # Build and start
# docker compose up -d # Start in background
# docker compose down # Stop and remove
# docker compose logs -f # Follow logs
# =============================================================================
services:
veritas-kanban:
build:
context: .
dockerfile: Dockerfile
container_name: veritas-kanban-demo
# IMPORTANT: Must match Dockerfile WORKDIR (/app/server) for correct path resolution
working_dir: /app/server
ports:
# Demo instance port (do NOT use production 3001)
- '3099:3001'
environment:
- NODE_ENV=production
- PORT=3001
- DATA_DIR=/app/data
# Demo auth key (Arcade walkthrough)
- VERITAS_ADMIN_KEY=demo-admin-key-for-product-hunt-2026
# Host -> container requests come from bridge IP (not 127.0.0.1), so keep API key enabled.
- VERITAS_AUTH_LOCALHOST_BYPASS=false
volumes:
# Persist demo data across container restarts
- kanban-demo-data:/app/data
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:3001/health']
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
kanban-demo-data:
driver: local