-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (75 loc) · 2.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
79 lines (75 loc) · 2.1 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
services:
envoy:
image: envoyproxy/envoy:v1.32-latest
volumes:
- ./envoy/envoy.yaml:/etc/envoy/envoy.yaml:ro
ports:
- "127.0.0.1:10000:10000"
depends_on:
codex-blackbox-core:
condition: service_healthy
healthcheck:
test:
- CMD-SHELL
- >
bash -c 'exec 3<>/dev/tcp/localhost/9901;
printf "GET /ready HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n" >&3;
head -n 1 <&3 | grep -q " 200 "'
interval: 5s
timeout: 3s
retries: 5
codex-blackbox-core:
build:
context: .
dockerfile: codex-blackbox-core/Dockerfile
expose:
- "50051"
ports:
- "127.0.0.1:9091:9090"
environment:
- RUST_LOG=info
- CODEX_BLACKBOX_SESSION_BUDGET_DOLLARS=0
- CODEX_BLACKBOX_SESSION_BUDGET_TOKENS=0
- CODEX_BLACKBOX_CIRCUIT_BREAKER_THRESHOLD=5
volumes:
- codex_blackbox_data:/data
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9090/health"]
interval: 5s
timeout: 3s
retries: 5
prometheus:
image: prom/prometheus:v2.52.0
ports:
- "127.0.0.1:9092:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=30d"
- "--web.enable-lifecycle"
depends_on:
codex-blackbox-core:
condition: service_healthy
grafana:
image: grafana/grafana:11.1.0
ports:
- "127.0.0.1:3000:3000"
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
- grafana_data:/var/lib/grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
depends_on:
- prometheus
volumes:
codex_blackbox_data:
prometheus_data:
grafana_data: