-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (90 loc) · 2.37 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (90 loc) · 2.37 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
92
93
94
95
96
97
services:
hookcli-mcp:
build: .
ports:
- "8000:8000"
env_file: .env
environment:
# Reach Docker through the restricted proxy, not the raw socket
- DOCKER_HOST=tcp://docker-socket-proxy:2375
depends_on:
redis:
condition: service_healthy
otel-collector:
condition: service_started
docker-socket-proxy:
condition: service_healthy
networks:
- hookcli-net
docker-socket-proxy:
image: ghcr.io/tecnativa/docker-socket-proxy:latest
environment:
# Permit only the endpoints Hook CLI MCP needs for sandbox execution
CONTAINERS: 1 # list, inspect, create, start, stop, wait, remove
IMAGES: 1 # list, inspect, pull (alpine:3.19)
NETWORKS: 0
VOLUMES: 0
AUTH: 0
SECRETS: 0
POST: 1 # allow all POST (create/start/wait)
DELETE: 1 # allow container removal
EXEC: 0 # never allow exec into containers
BUILD: 0 # never allow image builds via API
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "127.0.0.1:2375:2375" # bind to localhost only — not exposed externally
networks:
- hookcli-net
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:2375/version"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
networks:
- hookcli-net
otel-collector:
image: otel/opentelemetry-collector-contrib:0.97.0
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./config/otel-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317"
- "4318:4318"
- "8888:8888"
networks:
- hookcli-net
jaeger:
image: jaegertracing/all-in-one:1.52
ports:
- "16686:16686"
- "14268:14268"
environment:
- COLLECTOR_OTLP_ENABLED=true
networks:
- hookcli-net
prometheus:
image: prom/prometheus:latest
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- hookcli-net
networks:
hookcli-net:
driver: bridge
volumes:
redis-data: