File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed
Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ COPY g2-ssr/charts/* /app/charts/
4545
4646RUN npm install
4747
48+ FROM registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6
49+ ENV PG_PATH=/var/lib/postgresql/data
50+ ENV PG_SH=/usr/local/bin
51+ RUN mkdir -p ${PG_PATH}
52+ COPY --from=registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6 ${PG_PATH} ${PG_PATH}
53+ COPY --from=registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6 ${PG_SH} ${PG_SH}
54+
4855# Runtime stage
4956FROM registry.cn-qingdao.aliyuncs.com/dataease/sqlbot-base:latest
5057
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ SQLBOT_MCP_PORT=8001
99## 是否使用外部数据库
1010SQLBOT_EXTERNAL_DB=false
1111## 数据库地址
12- SQLBOT_DB_HOST=sqlbot-db
12+ SQLBOT_DB_HOST=localhost
1313## 数据库端口 (仅使用外部数据库时才生效)
1414SQLBOT_DB_PORT=5432
1515## SQLBot 数据库库名
Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ services:
88 ports :
99 - ${SQLBOT_WEB_PORT}:8000
1010 - ${SQLBOT_MCP_PORT}:8001
11+ - 5432:5432
1112 env_file :
1213 - conf/sqlbot.conf
1314 volumes :
1415 - ./data/sqlbot/excel:/opt/sqlbot/data/excel
1516 - ./data/sqlbot/images:/opt/sqlbot/images
1617 - ./data/sqlbot/logs:/opt/sqlbot/logs
18+ - ./data/postgresql:/var/lib/postgresql/data
1719 depends_on :
1820 sqlbot-db :
1921 condition : service_healthy
Original file line number Diff line number Diff line change 11SSR_PATH=/opt/sqlbot/g2-ssr
22APP_PATH=/opt/sqlbot/app
3+ docker-entrypoint.sh postgres
34nohup node $SSR_PATH /app.js &
45
56nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 &
You can’t perform that action at this time.
0 commit comments