Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (105 loc) · 3.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
111 lines (105 loc) · 3.11 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
108
109
110
111
services:
# Optional: Ollama for local embeddings/LLM (CPU by default).
# Enable with: docker compose --profile ollama up -d
ollama:
profiles: ["ollama"]
image: ollama/ollama:latest
container_name: synthos-ollama
restart: unless-stopped
ports:
- "11434:11434"
volumes:
- ./docker/volumes/ollama:/root/.ollama
ai-model:
build:
context: .
dockerfile: docker/backend.Dockerfile
container_name: synthos-ai-model
restart: unless-stopped
environment:
- NODE_ENV=production
- SYNTHOS_CONFIG_PATH=/config/synthos_config.json
volumes:
- ./docker/config:/config:ro
- ./docker/data:/data
- ./docker/logs:/logs
command: ["node", "applications/ai-model/dist/index.js"]
ports:
- "7979:7979"
preprocessing:
build:
context: .
dockerfile: docker/backend.Dockerfile
container_name: synthos-preprocessing
restart: unless-stopped
environment:
- NODE_ENV=production
- SYNTHOS_CONFIG_PATH=/config/synthos_config.json
volumes:
- ./docker/config:/config:ro
- ./docker/data:/data
- ./docker/logs:/logs
command: ["node", "applications/preprocessing/dist/index.js"]
ports:
- "7981:7981"
orchestrator:
build:
context: .
dockerfile: docker/backend.Dockerfile
container_name: synthos-orchestrator
restart: unless-stopped
depends_on:
- ai-model
- preprocessing
environment:
- NODE_ENV=production
- SYNTHOS_CONFIG_PATH=/config/synthos_config.json
volumes:
- ./docker/config:/config:ro
- ./docker/data:/data
- ./docker/logs:/logs
command: ["node", "applications/orchestrator/dist/index.js"]
webui-backend:
build:
context: .
dockerfile: docker/backend.Dockerfile
container_name: synthos-webui-backend
restart: unless-stopped
depends_on:
- ai-model
environment:
- NODE_ENV=production
- SYNTHOS_CONFIG_PATH=/config/synthos_config.json
- SYNTHOS_AI_RPC_BASE_URL=http://ai-model:7979
volumes:
- ./docker/config:/config:ro
- ./docker/data:/data
- ./docker/logs:/logs
command: ["node", "applications/webui-backend/dist/index.js"]
ports:
- "3002:3002"
webui-frontend:
build:
context: .
dockerfile: docker/frontend.Dockerfile
container_name: synthos-webui-frontend
restart: unless-stopped
depends_on:
- webui-backend
ports:
- "8080:80"
# data-provider cannot be containerized on Linux in Scheme B because it depends on
# the local QQNT database + a Windows-only VFS DLL, as well as the WeChat WCDB native
# libraries and the host Weixin.exe process. This is a *placeholder* service
# to make the architecture explicit.
data-provider:
profiles: ["host-only"]
image: alpine:3.20
container_name: synthos-data-provider-placeholder
command:
- sh
- -c
- |
echo "[synthos] data-provider is host-only in Scheme B (Windows QQNT DB + VFS DLL, WeChat WCDB + Weixin.exe).";
echo "Run it on your host: pnpm --filter data-provider dev";
sleep 3600