legal-ai-assistant/compose.yaml
2026-04-19 21:50:32 +02:00

60 lines
1.4 KiB
YAML

name: "legal-ai-assistant"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
depends_on:
backend:
condition: service_started
backend:
build:
context: .
dockerfile: /backend/Dockerfile
restart: unless-stopped
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
- LITELLM_BASE_URL=http://litellm:4000/v1
- LITELLM_API_KEY=sk-anything
- MCP_SERVER_URL=http://mcp:8001/mcp
- DEFAULT_MODEL=llama-3.3-70b
depends_on:
litellm:
condition: service_started
mcp:
condition: service_started
litellm:
image: ghcr.io/berriai/litellm:main-stable
container_name: litellm
restart: unless-stopped
ports:
- "4000:4000"
env_file:
- backend/.env
environment:
- GROQ_API_KEY=${GROQ_API_KEY}
- GEMINI_API_KEY=${GEMINI_API_KEY}
volumes:
- ./backend/config.yaml:/app/config.yaml:ro
command: ['--config', '/app/config.yaml', '--port', '4000']
mcp:
build:
context: .
dockerfile: /backend/mcp_server/Dockerfile
restart: unless-stopped
ports:
- "8001:8001"
environment:
- JUSTICE_API_BASE=https://obcan.justice.sk/pilot/api/ress-isu-service