forked from Kirachon/context-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (49 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
57 lines (49 loc) · 1.45 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
# Docker Compose for Context Engine MCP Server
#
# Usage:
# docker-compose up -d # Start in HTTP mode
# docker-compose logs -f # View logs
# docker-compose down # Stop
version: '3.8'
services:
context-engine:
build:
context: .
dockerfile: Dockerfile
image: context-engine:latest
container_name: context-engine
restart: unless-stopped
# Mount your project directory
volumes:
- ${PROJECT_PATH:-.}:/workspace:ro
- augment-config:/home/context-engine/.augment:ro
# Environment configuration
environment:
- CONTEXT_ENGINE_TRANSPORT=http
- CONTEXT_ENGINE_PORT=3000
- CONTEXT_ENGINE_WORKSPACE=/workspace
- CONTEXT_ENGINE_TOKEN_BUDGET=${TOKEN_BUDGET:-8000}
- CONTEXT_ENGINE_METRICS=true
- CONTEXT_ENGINE_METRICS_PORT=9090
# API credentials (optional - will use ~/.augment/session.json if not set)
- AUGMENT_API_TOKEN=${AUGMENT_API_TOKEN:-}
- AUGMENT_API_URL=${AUGMENT_API_URL:-}
# Expose ports
ports:
- "3000:3000" # MCP HTTP API
- "9090:9090" # Prometheus metrics
# Health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Named volume for Augment credentials
volumes:
augment-config:
driver: local
driver_opts:
type: none
o: bind
device: ${HOME}/.augment