Private
Public Access
1
0
Files
Kanban/docker-compose.yml
T
Catherine Renelle 0bba161c12 Phase 9: Admin & DevOps — health check, rate limiting, logging, site admin, Docker healthcheck
- Health check endpoint (GET /api/health) with DB probe and uptime
- In-memory sliding window rate limiting on login (10/60s) and register (5/3600s)
- Structured logging with pino (request timing in hooks, Socket.IO events in server.js)
- Site admin dashboard with tenant stats, CRUD, and requireSiteAdmin guard
- Tenant admin enhanced with tag and category management UI
- Docker HEALTHCHECK in Dockerfile and docker-compose.yml
- Backup documentation (docs/backup.md)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 01:24:24 -05:00

45 lines
1004 B
YAML

services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: kanban
POSTGRES_PASSWORD: kanban
POSTGRES_DB: kanban
ports:
- '5432:5432'
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U kanban']
interval: 5s
timeout: 5s
retries: 5
app:
build: .
restart: unless-stopped
ports:
- '3000:3000'
environment:
DATABASE_URL: postgresql://kanban:kanban@db:5432/kanban?schema=public
SESSION_SECRET: ${SESSION_SECRET:-change-me-in-production}
ORIGIN: ${ORIGIN:-http://localhost:3000}
PORT: 3000
HOST: 0.0.0.0
depends_on:
db:
condition: service_healthy
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/health']
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
volumes:
- uploads:/app/uploads
volumes:
pgdata:
uploads: