veritas-kanban/docker-compose.yml
Brad Groux d9b946b215 chore: bump version to 2.1.2 — Docker path resolution fix
- Version bumped in all package.json files (root, server, web, shared)
- CHANGELOG: v2.1.2 entry documenting WORKDIR fix and root cause
- README: version badge updated to 2.1.2
- DEPLOYMENT.md: path resolution note added
- TROUBLESHOOTING.md: EACCES fix guide added
- docker-compose.yml: WORKDIR comment added

Reviewed: 10/10/10/10
Related: #102
2026-02-07 16:57:37 -06:00

44 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
# IMPORTANT: Must match Dockerfile WORKDIR (/app/server) for correct path resolution
# Services use process.cwd()/.. to locate project root; mismatched WORKDIR causes EACCES errors
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