-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (72 loc) · 2.08 KB
/
docker-compose.yml
File metadata and controls
77 lines (72 loc) · 2.08 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
# VIBEE v8 - Production Swarm Runtime
# 32-agent Trinity cluster with Prometheus monitoring
version: "3.9"
services:
# Main swarm runtime (32 agents in single process for demo)
swarm-runtime:
build:
context: ..
dockerfile: deploy/Dockerfile
container_name: trinity-swarm
environment:
- AGENT_COUNT=32
- SELF_IMPROVE_INTERVAL=300
- PROMETHEUS_PORT=9090
- LOG_LEVEL=info
ports:
- "9090:9090" # Prometheus metrics
volumes:
- ./specs/tri:/app/specs/tri:ro # Read-only spec files
- ./generated:/app/generated:ro # Read-only generated code
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090/metrics"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- trinity-net
# Prometheus for metrics collection
prometheus:
image: prom/prometheus:v2.45.0
container_name: trinity-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'
ports:
- "9091:9090" # Prometheus UI
volumes:
- ./deploy/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
networks:
- trinity-net
depends_on:
- swarm-runtime
# Grafana for visualization (optional)
grafana:
image: grafana/grafana:10.0.0
container_name: trinity-grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./deploy/grafana/datasources:/etc/grafana/provisioning/datasources:ro
- ./deploy/grafana/dashboards:/etc/grafana/provisioning/dashboards:ro
networks:
- trinity-net
depends_on:
- prometheus
networks:
trinity-net:
driver: bridge
volumes:
prometheus-data:
grafana-data: