forked from khulnasoft/GPT-DB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (54 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
54 lines (54 loc) · 1.55 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
# To run current docker compose file, you should prepare the silliconflow api key in your environment.
# SILICONFLOW_API_KEY=${SILICONFLOW_API_KEY} docker compose up -d
services:
db:
image: mysql/mysql-server
environment:
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'aa123456'
ports:
- 3306:3306
volumes:
- gptdb-myql-db:/var/lib/mysql
- ./docker/examples/my.cnf:/etc/my.cnf
- ./docker/examples/sqls:/docker-entrypoint-initdb.d
- ./assets/schema/gptdb.sql:/docker-entrypoint-initdb.d/gptdb.sql
restart: unless-stopped
networks:
- gptdbnet
webserver:
image: khulnasoft/gptdb-openai:latest
command: gptdb start webserver --config /app/configs/gptdb-proxy-siliconflow-mysql.toml
environment:
- SILICONFLOW_API_KEY=${SILICONFLOW_API_KEY}
- MYSQL_PASSWORD=aa123456
- MYSQL_HOST=db
- MYSQL_PORT=3306
- MYSQL_DATABASE=gptdb
- MYSQL_USER=root
volumes:
- ./configs:/app/configs
- /data:/data
# May be you can mount your models to container
- /data/models:/app/models
- gptdb-data:/app/pilot/data
- gptdb-message:/app/pilot/message
depends_on:
- db
ports:
- 5670:5670/tcp
# webserver may be failed, it must wait all sqls in /docker-entrypoint-initdb.d execute finish.
restart: unless-stopped
networks:
- gptdbnet
ipc: host
volumes:
gptdb-myql-db:
gptdb-data:
gptdb-message:
gptdb-alembic-versions:
networks:
gptdbnet:
driver: bridge
name: gptdbnet