FIXES (from comprehensive audit): - NodePreview: complete rewrite — 380px left panel with document summaries, commitment list, phase track visualization, scrollable. Fixed children count bug (was showing [object Object]). Slides in from left (not right) to not overlap branch handles. - CommitmentForm: added required validation on eigenaar_id field - MetroMap: wired custom metro node creation with form + POST /metro-nodes - MetroMap: removed dead handleCliCommand console.log - MetroMap: added metro node creation modal (naam + beschrijving) NEW — AI Service integration: - ai-service/main.py: real Anthropic API integration via httpx - Reads ANTHROPIC_API_KEY from env, uses claude-haiku-4-5-20251001 - /api/chat fetches project context from PostgreSQL (docs, commitments) - /api/summarize sends content to Claude for summarization - /api/search does basic text search on documents + kennis_artikelen - AiController.php: Laravel proxy for /api/ai/chat → ai-service - CliBar.vue: complete rewrite with async API calls, processing state, error handling, conversation history, auto-scroll - Receives projectId prop for context-scoped AI queries - Shows "denken..." animation while waiting for response - docker-compose.yml: passes ANTHROPIC_API_KEY to ai-service container - config/services.php: ai service URL configuration To activate AI: set ANTHROPIC_API_KEY in .env and rebuild ai-service. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
156 lines
3.9 KiB
YAML
156 lines
3.9 KiB
YAML
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- .:/var/www/html
|
|
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
|
depends_on:
|
|
- laravel-app
|
|
networks:
|
|
- innovatieplatform
|
|
|
|
laravel-app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/php/Dockerfile
|
|
volumes:
|
|
- .:/var/www/html
|
|
environment:
|
|
- APP_ENV=${APP_ENV:-local}
|
|
- APP_KEY=${APP_KEY}
|
|
- DB_CONNECTION=pgsql
|
|
- DB_HOST=postgresql
|
|
- DB_PORT=5432
|
|
- DB_DATABASE=${DB_DATABASE:-innovatieplatform}
|
|
- DB_USERNAME=${DB_USERNAME:-innovatie}
|
|
- DB_PASSWORD=${DB_PASSWORD:-secret}
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- AI_SERVICE_URL=http://ai-service:8000
|
|
depends_on:
|
|
postgresql:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
networks:
|
|
- innovatieplatform
|
|
|
|
laravel-worker:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/php/Dockerfile
|
|
command: php artisan queue:work --sleep=3 --tries=3 --max-time=3600
|
|
volumes:
|
|
- .:/var/www/html
|
|
environment:
|
|
- APP_ENV=${APP_ENV:-local}
|
|
- APP_KEY=${APP_KEY}
|
|
- DB_CONNECTION=pgsql
|
|
- DB_HOST=postgresql
|
|
- DB_PORT=5432
|
|
- DB_DATABASE=${DB_DATABASE:-innovatieplatform}
|
|
- DB_USERNAME=${DB_USERNAME:-innovatie}
|
|
- DB_PASSWORD=${DB_PASSWORD:-secret}
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
- AI_SERVICE_URL=http://ai-service:8000
|
|
depends_on:
|
|
postgresql:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
networks:
|
|
- innovatieplatform
|
|
|
|
laravel-scheduler:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/php/Dockerfile
|
|
entrypoint: ["/usr/local/bin/scheduler-entrypoint.sh"]
|
|
volumes:
|
|
- .:/var/www/html
|
|
- ./docker/scheduler/entrypoint.sh:/usr/local/bin/scheduler-entrypoint.sh
|
|
environment:
|
|
- APP_ENV=${APP_ENV:-local}
|
|
- APP_KEY=${APP_KEY}
|
|
- DB_CONNECTION=pgsql
|
|
- DB_HOST=postgresql
|
|
- DB_PORT=5432
|
|
- DB_DATABASE=${DB_DATABASE:-innovatieplatform}
|
|
- DB_USERNAME=${DB_USERNAME:-innovatie}
|
|
- DB_PASSWORD=${DB_PASSWORD:-secret}
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
depends_on:
|
|
postgresql:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
networks:
|
|
- innovatieplatform
|
|
|
|
postgresql:
|
|
image: pgvector/pgvector:pg16
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_DB=${DB_DATABASE:-innovatieplatform}
|
|
- POSTGRES_USER=${DB_USERNAME:-innovatie}
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD:-secret}
|
|
volumes:
|
|
- postgresql_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME:-innovatie} -d ${DB_DATABASE:-innovatieplatform}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- innovatieplatform
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- innovatieplatform
|
|
|
|
ai-service:
|
|
build:
|
|
context: ./ai-service
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./ai-service:/app
|
|
environment:
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
- ANTHROPIC_MODEL=${ANTHROPIC_MODEL:-claude-haiku-4-5-20251001}
|
|
- DATABASE_URL=postgresql://${DB_USERNAME:-innovatie}:${DB_PASSWORD:-secret}@postgresql:5432/${DB_DATABASE:-innovatieplatform}
|
|
- DB_HOST=postgresql
|
|
- DB_PORT=5432
|
|
- DB_DATABASE=${DB_DATABASE:-innovatieplatform}
|
|
- DB_USERNAME=${DB_USERNAME:-innovatie}
|
|
- DB_PASSWORD=${DB_PASSWORD:-secret}
|
|
depends_on:
|
|
postgresql:
|
|
condition: service_healthy
|
|
networks:
|
|
- innovatieplatform
|
|
|
|
volumes:
|
|
postgresql_data:
|
|
redis_data:
|
|
|
|
networks:
|
|
innovatieplatform:
|
|
driver: bridge
|