-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (59 loc) · 1.77 KB
/
docker-compose.yml
File metadata and controls
64 lines (59 loc) · 1.77 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
version: '3.8'
services:
# Azure Cosmos DB Emulator for local development
cosmosdb:
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest
container_name: codeagent-cosmosdb
ports:
- "8081:8081"
- "10250-10255:10250-10255"
environment:
- AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10
- AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true
- AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=127.0.0.1
volumes:
- cosmosdb-data:/data
healthcheck:
test: ["CMD", "curl", "-k", "-f", "https://localhost:8081/_explorer/emulator.pem"]
interval: 30s
timeout: 10s
retries: 5
# API Service
api:
build:
context: ./src/CodeAgent.Api
dockerfile: Dockerfile
container_name: codeagent-api
ports:
- "5000:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- AzureOpenAI__Endpoint=${AZURE_OPENAI_ENDPOINT}
- AzureOpenAI__ApiKey=${AZURE_OPENAI_API_KEY}
- AzureOpenAI__ChatDeployment=gpt-4
- AzureOpenAI__EmbeddingDeployment=text-embedding-ada-002
- CosmosDb__ConnectionString=AccountEndpoint=https://cosmosdb:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
- CosmosDb__DatabaseName=CodeAgentDb
- Frontend__Url=http://localhost:5173
depends_on:
cosmosdb:
condition: service_healthy
volumes:
- ./sample-repos:/app/sample-repos:ro
# Frontend
frontend:
build:
context: ./src/code-agent-ui
dockerfile: Dockerfile
container_name: codeagent-frontend
ports:
- "5173:80"
environment:
- VITE_API_URL=http://localhost:5000
depends_on:
- api
volumes:
cosmosdb-data:
networks:
default:
name: codeagent-network