Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (76 loc) · 1.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
84 lines (76 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: procode-postgres
environment:
POSTGRES_DB: procode
POSTGRES_USER: procode_user
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5433:5432" # Map to 5433 on host to avoid conflicts
healthcheck:
test: ["CMD-SHELL", "pg_isready -U procode_user -d procode"]
interval: 10s
timeout: 5s
retries: 5
networks:
- procode-network
# Procode Agent
agent:
build:
context: .
dockerfile: Dockerfile
container_name: procode-agent
environment:
# Database
DATABASE_URL: postgresql://procode_user:${POSTGRES_PASSWORD:-changeme}@postgres:5432/procode
USE_DATABASE: "true"
DB_POOL_SIZE: 10
DB_MAX_OVERFLOW: 20
# LLM API Keys (pass from host environment)
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
OPENAI_API_KEY: ${OPENAI_API_KEY}
GOOGLE_API_KEY: ${GOOGLE_API_KEY}
# Configuration
USE_LLM_INTENT: "true"
CONVERSATION_WINDOW_SIZE: 10
# GitHub (optional)
GITHUB_TOKEN: ${GITHUB_TOKEN}
GITHUB_REPO: ${GITHUB_REPO}
USE_REAL_TOOLS: ${USE_REAL_TOOLS:-false}
ports:
- "9998:9998"
depends_on:
postgres:
condition: service_healthy
volumes:
- ./logs:/app/logs
- ./data:/app/data
networks:
- procode-network
restart: unless-stopped
# Frontend (Next.js)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: procode-frontend
environment:
NEXT_PUBLIC_AGENT_URL: http://agent:9998
ports:
- "3001:3000" # Map to 3001 on host to avoid conflicts with local dev server
depends_on:
- agent
networks:
- procode-network
restart: unless-stopped
volumes:
postgres_data:
driver: local
networks:
procode-network:
driver: bridge