-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (85 loc) · 2.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
91 lines (85 loc) · 2.4 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
85
86
87
88
89
90
91
# DevMesh Docker Compose Configuration
# ====================================
# Run: docker-compose up -d
# Stop: docker-compose down
version: '3.8'
services:
devmesh-server:
build:
context: .
dockerfile: Dockerfile
target: production
container_name: devmesh-server
restart: unless-stopped
ports:
- "7700:7700" # Agent WebSocket
- "7701:7701" # HTTP Dashboard
- "7702:7702" # Dashboard WebSocket
volumes:
- devmesh-data:/app/.devmesh
- devmesh-logs:/app/logs
- /var/run/docker.sock:/var/run/docker.sock:ro # Optional: for tool detection
environment:
- DEVMESH_LOG_LEVEL=INFO
- DEVMESH_WS_HOST=0.0.0.0
- DEVMESH_GPU_VRAM_GB=16
- DEVMESH_RAM_GB=32
- DEVMESH_LOCK_TTL_SEC=15
- DEVMESH_HEARTBEAT_GRACE_SEC=5
networks:
- devmesh-network
healthcheck:
test: ["CMD", "python", "-c", "import socket; s=socket.socket(); s.connect(('127.0.0.1',7701)); s.close()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Optional: Prometheus metrics scraper
prometheus:
image: prom/prometheus:latest
container_name: devmesh-prometheus
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=200h'
- '--web.enable-lifecycle'
networks:
- devmesh-network
profiles:
- monitoring
# Optional: Grafana dashboard
grafana:
image: grafana/grafana:latest
container_name: devmesh-grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./grafana/datasources:/etc/grafana/provisioning/datasources:ro
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=devmesh-admin
networks:
- devmesh-network
depends_on:
- prometheus
profiles:
- monitoring
volumes:
devmesh-data:
devmesh-logs:
prometheus-data:
grafana-data:
networks:
devmesh-network:
driver: bridge