-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
81 lines (72 loc) · 1.72 KB
/
docker-compose.yml
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
version: '3.9'
networks:
net:
driver: bridge
services:
# chat-frontend:
# image: ghcr.io/sdsc-ord/chatllm:latest
# container_name: kg_llm_frontend
# ports:
# - 8000:8000
# networks:
# net:
# profiles:
# - frontend
chat-server:
build:
context: .
dockerfile: Dockerfile
command: poetry run uvicorn aikg.server:app --reload --port 8001 --host 0.0.0.0
container_name: kg_llm_server
depends_on:
- chroma-server
ports:
- ${SERVER_PORT:-8001}:8001
networks:
net:
env_file:
- .env
chroma-server:
image: ghcr.io/chroma-core/chroma:0.3.23
volumes:
- index_data:/index_data
command: uvicorn chromadb.app:app --reload --workers 1 --host 0.0.0.0 --port 8000 --log-config log_config.yml
container_name: kg_llm_chroma
environment:
- CHROMA_DB_IMPL=clickhouse
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PORT=8123
ports:
- ${CHROMA_PORT:-8000}:8000
depends_on:
- clickhouse
profiles:
- db
networks:
net:
clickhouse:
image: clickhouse/clickhouse-server:22.9-alpine
container_name: kg_llm_clickhouse
environment:
- ALLOW_EMPTY_PASSWORD=yes
- CLICKHOUSE_TCP_PORT=8999
- CLICKHOUSE_HTTP_PORT=8123
ports:
- '8123:8123'
- '8999:8999'
volumes:
- clickhouse_data:/bitnami/clickhouse
- backups:/backups
- ./config/backup_disk.xml:/etc/clickhouse-server/config.d/backup_disk.xml
- ./config/chroma_users.xml:/etc/clickhouse-server/users.d/chroma.xml
profiles:
- db
networks:
net:
volumes:
clickhouse_data:
driver: local
index_data:
driver: local
backups:
driver: local