YAS/docker-compose.yml
YetAnotherSuite Dev 2a2b2e5398 feat: Phase 6 platform — public API, desktop app, Docker deployment, analytics
Phase 6.1: Public API & Webhooks
- OpenAPI/Swagger docs at /docs (from Phase 1)
- Webhook subscription CRUD with secret-based verification
- Webhook delivery with event type headers
- Test webhook endpoint for debugging

Phase 6.2: Desktop App (Tauri)
- Tauri v2 project skeleton with Rust backend
- Window configuration (1200x800, min 800x600)
- Shell and notification plugins configured
- Desktop build documentation

Phase 6.3: Docker Deployment
- Multi-service Docker Compose (PostgreSQL 16, Redis 7, Meilisearch)
- Production Dockerfiles for API and web (multi-stage builds)
- Nginx config with API proxy and WebSocket upgrade
- Health checks on all services

Phase 6.4: Analytics Dashboard
- Analytics overview endpoint (node counts, completion rates)
- Activity tracking feed (30-day history)
- Weekly activity metrics
2026-07-20 22:30:12 +02:00

70 lines
1.4 KiB
YAML

services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: yetanother
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./packages/db/prisma:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
meilisearch:
image: getmeili/meilisearch:v1.12
ports:
- "7700:7700"
environment:
MEILI_MASTER_KEY: dev-master-key
volumes:
- meilisearch_data:/meili_data
api:
build:
context: .
dockerfile: apps/api/Dockerfile
ports:
- "4000:4000"
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/yetanother?schema=public
REDIS_URL: redis://redis:6379
JWT_SECRET: dev-jwt-secret
NODE_ENV: production
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
web:
build:
context: .
dockerfile: apps/web/Dockerfile
ports:
- "3000:80"
depends_on:
- api
volumes:
postgres_data:
redis_data:
meilisearch_data: