File tree Expand file tree Collapse file tree 4 files changed +1
-12
lines changed
Expand file tree Collapse file tree 4 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ COPY g2-ssr/charts/* /app/charts/
4545
4646RUN npm install
4747
48- FROM registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6 AS pg-builder
49-
5048# Runtime stage
5149FROM registry.cn-qingdao.aliyuncs.com/dataease/sqlbot-base:latest
5250
@@ -56,12 +54,6 @@ ENV SQLBOT_HOME=/opt/sqlbot
5654ENV PYTHONPATH=${SQLBOT_HOME}/app
5755ENV PATH="${SQLBOT_HOME}/app/.venv/bin:$PATH"
5856
59- ENV PG_PATH=/var/lib/postgresql/data
60- ENV PG_SH=/usr/local/bin
61- RUN mkdir -p ${PG_PATH}
62- COPY --from=pg-builder ${PG_PATH} ${PG_PATH}
63- COPY --from=pg-builder ${PG_SH} ${PG_SH}
64-
6557# Copy necessary files from builder
6658COPY start.sh /opt/sqlbot/app/start.sh
6759COPY g2-ssr/*.ttf /usr/share/fonts/truetype/liberation/
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=localhost
12+ SQLBOT_DB_HOST=sqlbot-db
1313## 数据库端口 (仅使用外部数据库时才生效)
1414SQLBOT_DB_PORT=5432
1515## SQLBot 数据库库名
Original file line number Diff line number Diff line change @@ -8,14 +8,12 @@ services:
88 ports :
99 - ${SQLBOT_WEB_PORT}:8000
1010 - ${SQLBOT_MCP_PORT}:8001
11- - 5432:5432
1211 env_file :
1312 - conf/sqlbot.conf
1413 volumes :
1514 - ./data/sqlbot/excel:/opt/sqlbot/data/excel
1615 - ./data/sqlbot/images:/opt/sqlbot/images
1716 - ./data/sqlbot/logs:/opt/sqlbot/logs
18- - ./data/postgresql:/var/lib/postgresql/data
1917 depends_on :
2018 sqlbot-db :
2119 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
43nohup node $SSR_PATH /app.js &
54
65nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 &
You can’t perform that action at this time.
0 commit comments