-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 1.73 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (54 loc) · 1.73 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
# HybridMind Development
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "127.0.0.1:8000:8000"
volumes:
- hybridmind_data:/app/data
environment:
- HYBRIDMIND_DEVICE=auto
- HYBRIDMIND_HOST=0.0.0.0
- HYBRIDMIND_API_KEY=${HYBRIDMIND_API_KEY:-}
# The host port is loopback-only. This permits the bundled UI container;
# set HYBRIDMIND_API_KEY and disable this flag for shared Docker networks.
- HYBRIDMIND_ALLOW_UNAUTHENTICATED_PRIVATE_NETWORKS=true
- HYBRIDMIND_TRUSTED_HOSTS=api,localhost,127.0.0.1
# Uncomment to pin a specific device:
# - HYBRIDMIND_DEVICE=cpu
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/live"]
interval: 10s
timeout: 5s
retries: 5
start_period: 120s
restart: unless-stopped
# --- NVIDIA GPU (Linux/Docker only) ---
# To enable: uncomment the deploy block below and ensure nvidia-container-toolkit is installed.
# Also set HYBRIDMIND_USE_FAISS_GPU=true and install faiss-gpu (not faiss-cpu).
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
ui:
build:
context: .
dockerfile: Dockerfile
command: ["streamlit", "run", "ui/app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]
ports:
- "127.0.0.1:8501:8501"
environment:
- API_URL=http://api:8000
# Set the same value on both services when API authentication is enabled.
- HYBRIDMIND_API_KEY=${HYBRIDMIND_API_KEY:-}
depends_on:
api:
condition: service_healthy
restart: unless-stopped
volumes:
hybridmind_data: