forked from openchatai/OpenChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (90 loc) · 1.97 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '3'
services:
backend-server:
restart: unless-stopped
build:
context: ./backend-server
dockerfile: Dockerfile
ports:
- "8000:8000"
depends_on:
- llm-server
- mysql
- redis
environment:
- REDIS_HOST=redis
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=openchat
- DB_USERNAME=dbuser
- DB_PASSWORD=dbpass
env_file:
- ./common.env
volumes:
- shared_data:/app/shared_data
networks:
- openchat_network
# adminer:
# image: adminer
# ports:
# - "8080:8080"
# environment:
# ADMINER_DEFAULT_SERVER: db # Change this to match your database server name
# depends_on:
# - mysql
# networks:
# - openchat_network
llm-server:
restart: unless-stopped
# prebuilt image for linux
# image: codebanesr/openchat_llm_server:edge
# prebuilt image for mac
# image: codebanesr/openchat_llm_server:edge_amd64
# or build from source
build:
context: ./llm-server
dockerfile: Dockerfile
volumes:
- shared_data:/app/shared_data
env_file:
- ./common.env
networks:
- openchat_network
mysql:
restart: unless-stopped
platform: linux/x86_64
image: "mysql:5.7"
ports:
- "3307:3306"
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: openchat
MYSQL_USER: dbuser
MYSQL_PASSWORD: dbpass
volumes:
- database:/var/lib/mysql
networks:
- openchat_network
qdrant:
image: qdrant/qdrant
ports:
- 6333:6333
- 6334:6334
volumes:
- qdrant_storage:/qdrant/storage
networks:
- openchat_network
redis:
restart: unless-stopped
image: "redis:3.2"
ports:
- "6379:6379"
networks:
- openchat_network
networks:
openchat_network:
volumes:
shared_data:
database:
qdrant_storage: