mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
(improvement)(chat) Forcefully delete the data date generated by the large model. (#1607)
This commit is contained in:
@@ -51,7 +51,7 @@ services:
|
||||
retries: 5
|
||||
|
||||
db_init:
|
||||
image: supersonicbi/supersonic:${SUPERSONIC_VERSION:-latest}
|
||||
image: supersonicbi/supersonic:${SUPERSONIC_VERSION:-0.9.6}
|
||||
privileged: true
|
||||
platform: linux/amd64
|
||||
container_name: supersonic_db_init
|
||||
@@ -64,8 +64,8 @@ services:
|
||||
sh -c "
|
||||
sleep 15 &&
|
||||
if ! mysql -h supersonic_mysql -usupersonic_user -psupersonic_password -e 'use supersonic_db; show tables;' | grep -q 's2_database'; then
|
||||
mysql -h supersonic_mysql -usupersonic_user -psupersonic_password supersonic_db < /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION:-latest}/conf/db/schema-mysql.sql &&
|
||||
mysql -h supersonic_mysql -usupersonic_user -psupersonic_password supersonic_db < /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION:-latest}/conf/db/data-mysql.sql
|
||||
mysql -h supersonic_mysql -usupersonic_user -psupersonic_password supersonic_db < /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION:-0.9.6}/conf/db/schema-mysql.sql &&
|
||||
mysql -h supersonic_mysql -usupersonic_user -psupersonic_password supersonic_db < /usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION:-0.9.6}/conf/db/data-mysql.sql
|
||||
else
|
||||
echo 'Database already initialized.'
|
||||
fi
|
||||
@@ -76,7 +76,7 @@ services:
|
||||
- 8.8.4.4
|
||||
|
||||
supersonic_standalone:
|
||||
image: supersonicbi/supersonic:${SUPERSONIC_VERSION:-latest}
|
||||
image: supersonicbi/supersonic:${SUPERSONIC_VERSION:-0.9.6}
|
||||
privileged: true
|
||||
platform: linux/amd64
|
||||
container_name: supersonic_standalone
|
||||
@@ -103,7 +103,7 @@ services:
|
||||
- 8.8.4.4
|
||||
volumes:
|
||||
#1.Named Volumes are best for persistent data managed by Docker.
|
||||
- supersonic_data:/usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION:-latest}
|
||||
- supersonic_data:/usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION:-0.9.6}
|
||||
#2.Bind Mounts are suitable for frequent modifications and debugging.
|
||||
# - ./conf/langchain4j-prd.yaml:/usr/src/app/supersonic-standalone-${SUPERSONIC_VERSION:-latest}/conf/langchain4j-prd.yaml
|
||||
#3.Detailed Bind Mounts offer more control over the mount behavior.
|
||||
|
||||
Reference in New Issue
Block a user