veritas-kanban/docker-compose.yml
Brad Groux e0bd0102cb fix: add TRUST_PROXY env var for reverse proxy deployments (#100)
Resolves #100. Adds configurable trust proxy setting via TRUST_PROXY
environment variable. Supports numeric hop counts, subnet strings, and
named values (loopback, linklocal, uniquelocal). TRUST_PROXY=true is
intentionally blocked (unsafe for production — logs warning and falls
back to default). Disabled by default (no behavior change).

Includes documentation updates for nginx, Caddy, and Docker deployments.
2026-02-07 14:53:02 -06:00

42 lines
1.3 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
working_dir: /app
ports:
- '3001:3001'
environment:
- NODE_ENV=production
- PORT=3001
- DATA_DIR=/app/data
# Reverse proxy support: set when running behind nginx, Caddy, Traefik, etc.
# - TRUST_PROXY=1
# Auth: set API keys for production use
# - API_KEYS=key1:admin,key2:viewer
# - JWT_SECRET=your-secret-here
volumes:
# Persist task data across container restarts
- kanban-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-data:
driver: local