mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-25 13:06:53 +00:00
Merge d3d8a20ca6
into 1eea9c8eec
This commit is contained in:
commit
09c4ded6da
59
docker-compose.yml.armv8
Normal file
59
docker-compose.yml.armv8
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
version: '3.10'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mysql/mysql-server
|
||||||
|
environment:
|
||||||
|
MYSQL_USER: 'user'
|
||||||
|
MYSQL_PASSWORD: 'password'
|
||||||
|
MYSQL_ROOT_PASSWORD: 'linaro123'
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
|
volumes:
|
||||||
|
- dbgpt-myql-db:/var/lib/mysql
|
||||||
|
- ./docker/examples/my.cnf:/etc/my.cnf
|
||||||
|
- ./docker/examples/sqls:/docker-entrypoint-initdb.d
|
||||||
|
- ./assets/schema/dbgpt.sql:/docker-entrypoint-initdb.d/dbgpt.sql
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- dbgptnet
|
||||||
|
webserver:
|
||||||
|
image: tmsxb/dbgpt:v1.0
|
||||||
|
working_dir: /DB-GPT
|
||||||
|
command: python dbgpt/app/dbgpt_server.py
|
||||||
|
environment:
|
||||||
|
- LOCAL_DB_HOST=db
|
||||||
|
- LOCAL_DB_PASSWORD=linaro123
|
||||||
|
- ALLOWLISTED_PLUGINS=db_dashboard
|
||||||
|
- LLM_MODEL=text2vec-large-chinese
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
- /data/DB-GPT/:/DB-GPT
|
||||||
|
# Please modify it to your own model directory
|
||||||
|
- /data/DB-GPT/models:/app/models
|
||||||
|
- dbgpt-data:/app/pilot/data
|
||||||
|
- dbgpt-message:/app/pilot/message
|
||||||
|
env_file:
|
||||||
|
- .env.template
|
||||||
|
ports:
|
||||||
|
- 5670:5670/tcp
|
||||||
|
# webserver may be failed, it must wait all sqls in /docker-entrypoint-initdb.d execute finish.
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- dbgptnet
|
||||||
|
ipc: host
|
||||||
|
#deploy:
|
||||||
|
# resources:
|
||||||
|
# reservations:
|
||||||
|
# devices:
|
||||||
|
# - driver: nvidia
|
||||||
|
# capabilities: [gpu]
|
||||||
|
volumes:
|
||||||
|
dbgpt-myql-db:
|
||||||
|
dbgpt-data:
|
||||||
|
dbgpt-message:
|
||||||
|
networks:
|
||||||
|
dbgptnet:
|
||||||
|
driver: bridge
|
||||||
|
name: dbgptnet
|
Loading…
Reference in New Issue
Block a user