-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (79 loc) · 2.95 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (79 loc) · 2.95 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
# ── Qute — docker-compose.yml ────────────────────────────────────
# Services:
# qute-app — Streamlit UI + all Python modules
# otel-collector — OpenTelemetry Collector (receives OTLP, routes internally)
# jaeger — Distributed trace visualisation (dev only)
version: "3.9"
networks:
qute-net:
driver: bridge
volumes:
qute-db: # persists DuckDB data across container restarts
services:
# ── Qute application ─────────────────────────────────────────
qute-app:
build:
context: .
target: gpu
container_name: qute-app
restart: unless-stopped
ports:
- "8503:8501"
- "5514:5514/udp"
- "5514:5514/tcp"
volumes:
- qute-db:/root/.qute
- ./data:/app/data
- ./src:/app/src
- ./scripts:/app/scripts
environment:
- QUTE_OLLAMA_HOST=${QUTE_OLLAMA_HOST:-172.25.112.1}
- QUTE_OLLAMA_MODEL=${QUTE_OLLAMA_MODEL:-qwen2.5:latest}
- QUTE_OTLP_ENDPOINT=http://otel-collector:4317
- QUTE_OTLP_INSECURE=true
- QUTE_QUANTUM_BACKEND=${QUTE_QUANTUM_BACKEND:-nvidia}
- QUTE_QUANTUM_SHOTS=${QUTE_QUANTUM_SHOTS:-1024}
- QUTE_ISING_NOISE_ENABLED=${QUTE_ISING_NOISE_ENABLED:-true}
- QUTE_ISING_NOISE_DEPOLAR_PROB=${QUTE_ISING_NOISE_DEPOLAR_PROB:-0.001}
depends_on:
- otel-collector
networks:
- qute-net
# ── GPU acceleration (optional) ──────────────────────────────
# To enable: change build target to "gpu" and uncomment below
# Also set QUTE_QUANTUM_BACKEND=nvidia in .env
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# ── OpenTelemetry Collector ───────────────────────────────────
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
container_name: qute-otel-collector
restart: unless-stopped
command: ["--config=/etc/otel/config.yml"]
ports:
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "8888:8888" # Collector metrics
- "55679:55679" # zPages debug UI
volumes:
- ./otel-collector-config.yml:/etc/otel/config.yml:ro
networks:
- qute-net
# ── Jaeger v2 (in-memory, dev only) ──────────────────────────
jaeger:
image: jaegertracing/jaeger:2.0.0
container_name: qute-jaeger
restart: unless-stopped
ports:
- "16686:16686" # Jaeger UI
- "4317" # Internal OTLP gRPC (not exposed to host)
environment:
- SPAN_STORAGE_TYPE=memory
- MEMORY_MAX_TRACES=10000
networks:
- qute-net