Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (62 loc) · 1.5 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
67 lines (62 loc) · 1.5 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
version: '3.8'
services:
backend:
image: python:3.12-slim
container_name: smart_health_backend
working_dir: /app/server
volumes:
- .:/app
ports:
- "8000:8000"
environment:
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
command: >
sh -c "pip install --no-cache-dir -r requirements.txt &&
alembic upgrade head &&
fastapi dev main.py --host 0.0.0.0 --port 8000"
frontend:
image: node:22-slim
container_name: smart_health_frontend
working_dir: /app/client
volumes:
- .:/app
ports:
- "3000:3000"
command: sh -c "npm install && npm start"
mysql:
container_name: shp-mysql
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_DATABASE: ${MYSQL_DATABASE}
restart: always
volumes:
- mysql_volumes:/var/lib/mysql
ports:
- "${MYSQL_PORT}:3306"
qwen-api:
image: ghcr.io/ggml-org/llama.cpp:server
container_name: qwen-api
ports:
- "8001:8001"
volumes:
- llama_cache:/root/.cache/llama.cpp
command: >
-hf unsloth/Qwen3.5-2B-GGUF:UD-Q2_K_XL
--host 0.0.0.0
--port 8001
--ctx-size 4096
--threads 4
--temp 0.7
--top-p 0.8
--top-k 20
--min-p 0.00
--chat-template-kwargs '{"enable_thinking":false}'
--no-webui
--api-key ${OPENAI_API_KEY}
volumes:
mysql_volumes:
llama_cache: