Add complete project scaffolding for GitCaddy.AI, an AI-powered Git assistant service. Includes: - gRPC service implementation with proto definitions - Core services: chat, code review, code intelligence, documentation, issues, and workflows - AI provider factory with configuration support - License validation system - Docker containerization with dev and prod compose files - .NET 9.0 solution with service and client projects
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
# GitCaddy AI Service Docker Compose
|
|
# Copyright 2026 MarketAlly. All rights reserved.
|
|
# SPDX-License-Identifier: BSL-1.1
|
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
gitcaddy-ai:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: gitcaddy/gitcaddy-ai:latest
|
|
container_name: gitcaddy-ai
|
|
ports:
|
|
- "5050:5000" # HTTP
|
|
- "5051:5001" # gRPC
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Production
|
|
- ASPNETCORE_URLS=http://+:5000;http://+:5001
|
|
- AIService__DefaultProvider=Claude
|
|
- AIService__DefaultModel=claude-sonnet-4-20250514
|
|
- Providers__Claude__ApiKey=${CLAUDE_API_KEY}
|
|
- Providers__OpenAI__ApiKey=${OPENAI_API_KEY}
|
|
- License__LicenseKey=${GITCADDY_AI_LICENSE}
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- gitcaddy
|
|
|
|
# Optional: Redis for caching (uncomment to enable)
|
|
# redis:
|
|
# image: redis:7-alpine
|
|
# container_name: gitcaddy-ai-redis
|
|
# ports:
|
|
# - "6379:6379"
|
|
# volumes:
|
|
# - redis-data:/data
|
|
# networks:
|
|
# - gitcaddy
|
|
|
|
networks:
|
|
gitcaddy:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
redis-data:
|