-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 2.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (64 loc) · 2.09 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
# AIR Blackbox — Full Observability Stack
# Usage: docker compose up
#
# Services:
# gate — The AI Action Firewall (FastAPI) → http://localhost:8000
# jaeger — Distributed tracing UI → http://localhost:16686
# dashboard — Audit trail viewer (read-only) → http://localhost:3000
#
# Volumes:
# gate-data — Persistent SQLite audit database
services:
# ── Gate: The AI Action Firewall ───────────────────────────────
gate:
build: .
container_name: air-blackbox-gate
ports:
- "8000:8000"
environment:
- GATE_SIGNING_KEY=${GATE_SIGNING_KEY:-demo-key-change-in-production}
- GATE_STORAGE_PATH=/data/gate_events.db
- GATE_CONFIG_PATH=gate_config.yaml
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
- OTEL_SERVICE_NAME=air-blackbox-gate
volumes:
- gate-data:/data
- ./gate_config.yaml:/app/gate_config.yaml:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
restart: unless-stopped
depends_on:
jaeger:
condition: service_started
# ── Jaeger: Distributed Tracing ────────────────────────────────
jaeger:
image: jaegertracing/all-in-one:1.54
container_name: air-blackbox-jaeger
ports:
- "16686:16686" # Jaeger UI
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
environment:
- COLLECTOR_OTLP_ENABLED=true
restart: unless-stopped
# ── Dashboard: Audit Trail Viewer ──────────────────────────────
dashboard:
build:
context: .
dockerfile: Dockerfile.dashboard
container_name: air-blackbox-dashboard
ports:
- "3000:3000"
environment:
- GATE_URL=http://gate:8000
depends_on:
gate:
condition: service_healthy
restart: unless-stopped
volumes:
gate-data:
driver: local