Skip to content

Commit b24a652

Browse files
feat: Add docker-compose.yaml
1 parent 42d7c3c commit b24a652

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

docker-compose.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
services:
2+
sqlbot:
3+
image: dataease/sqlbot:v0.9.3
4+
container_name: sqlbot
5+
restart: always
6+
networks:
7+
- sqlbot-network
8+
ports:
9+
- 8000:8000
10+
- 8001:8001
11+
environment:
12+
# Database configuration
13+
POSTGRES_SERVER: sqlbot-db
14+
POSTGRES_PORT: 5432
15+
POSTGRES_DB: sqlbot
16+
POSTGRES_USER: sqlbot
17+
POSTGRES_PASSWORD: sqlbot
18+
# Project basic settings
19+
PROJECT_NAME: "SQLBot"
20+
DEFAULT_PWD: "SQLBot@123456"
21+
# MCP settings
22+
MCP_IMAGE_PATH: /opt/sqlbot/images
23+
MCP_IMAGE_HOST: http://localhost:3000
24+
SERVER_IMAGE_HOST: https://sqlbot.fit2cloud.cn/images/
25+
# Auth & Security
26+
TOKEN_KEY: "X-SQLBOT-TOKEN"
27+
ASSISTANT_TOKEN_KEY: "X-SQLBOT-ASSISTANT-TOKEN"
28+
SECRET_KEY: y5txe1mRmS_JpOrUzFzHEu-kIQn3lf7ll0AOv9DQh0s
29+
# CORS settings
30+
BACKEND_CORS_ORIGINS: "http://localhost,http://localhost:5173,https://localhost,https://localhost:5173"
31+
# Logging
32+
LOG_LEVEL: "INFO"
33+
LOG_DIR: "/opt/sqlbot/logs"
34+
LOG_FORMAT: "%(asctime)s - %(name)s - %(levelname)s:%(lineno)d - %(message)s"
35+
SQL_DEBUG: False
36+
volumes:
37+
- ./data/sqlbot/excel:/opt/sqlbot/data/excel
38+
- ./data/sqlbot/images:/opt/sqlbot/images
39+
- ./data/sqlbot/logs:/opt/sqlbot/logs
40+
depends_on:
41+
sqlbot-db:
42+
condition: service_healthy
43+
44+
sqlbot-db:
45+
image: postgres:17.5
46+
container_name: sqlbot-db
47+
restart: always
48+
networks:
49+
- sqlbot-network
50+
volumes:
51+
- ./data/postgresql:/var/lib/postgresql/data
52+
environment:
53+
POSTGRES_DB: sqlbot
54+
POSTGRES_USER: sqlbot
55+
POSTGRES_PASSWORD: sqlbot
56+
healthcheck:
57+
test: ["CMD-SHELL", "pg_isready"]
58+
interval: 3s
59+
timeout: 5s
60+
retries: 5
61+
networks:
62+
sqlbot-network:

0 commit comments

Comments
 (0)