-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (101 loc) · 2.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
107 lines (101 loc) · 2.69 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
98
99
100
101
102
103
104
105
106
107
# MIZAN (ميزان) - Full Stack Deployment
# "And the heaven He raised and imposed the balance (Mizan)" - Quran 55:7
services:
backend:
build:
context: ./backend
dockerfile: ../docker/Dockerfile.backend
container_name: mizan-backend
restart: unless-stopped
stop_grace_period: 30s
ports:
- "8000:8000"
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
- OLLAMA_URL=${OLLAMA_URL:-http://ollama:11434}
- DEFAULT_MODEL=${DEFAULT_MODEL:-claude-opus-4-6}
- SECRET_KEY=${SECRET_KEY:?SECRET_KEY environment variable is required}
- DB_PATH=/data/mizan_memory.db
- ALLOWED_ORIGINS=http://localhost:3100,http://localhost:3000,http://localhost:5173
- LINODE_API_TOKEN=${LINODE_API_TOKEN:-}
- RUH_ENABLED=${RUH_ENABLED:-false}
- RUH_MODEL_PATH=${RUH_MODEL_PATH:-}
volumes:
- mizan-data:/data
- mizan-plugins:/app/plugins
- ./backend:/app
- ./ruh_model:/app/ruh_model
networks:
- mizan-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
frontend:
build:
context: ./frontend
dockerfile: ../docker/Dockerfile.frontend
container_name: mizan-frontend
restart: unless-stopped
stop_grace_period: 10s
ports:
- "3100:3000"
depends_on:
backend:
condition: service_healthy
networks:
- mizan-net
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3000/ || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Optional: Local LLM via Ollama
ollama:
image: ollama/ollama:latest
container_name: mizan-ollama
restart: unless-stopped
stop_grace_period: 15s
volumes:
- ollama-data:/root/.ollama
networks:
- mizan-net
profiles:
- ollama
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/"]
interval: 30s
timeout: 10s
retries: 3
# Optional: Vector database for semantic search
chroma:
image: chromadb/chroma:latest
container_name: mizan-chroma
restart: unless-stopped
stop_grace_period: 15s
ports:
- "8100:8000"
volumes:
- chroma-data:/chroma/.chroma
networks:
- mizan-net
profiles:
- vector
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/heartbeat"]
interval: 30s
timeout: 10s
retries: 3
networks:
mizan-net:
driver: bridge
volumes:
mizan-data:
mizan-plugins:
ollama-data:
chroma-data: