mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-10-08 04:37:51 +00:00
40 lines
1.2 KiB
YAML
40 lines
1.2 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
|
|
# 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
|