mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: Add docker-compose.yaml
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
services:
|
||||
sqlbot:
|
||||
image: dataease/sqlbot:v0.9.3
|
||||
container_name: sqlbot
|
||||
restart: always
|
||||
networks:
|
||||
- sqlbot-network
|
||||
ports:
|
||||
- 8000:8000
|
||||
- 8001:8001
|
||||
environment:
|
||||
# Database configuration
|
||||
POSTGRES_SERVER: sqlbot-db
|
||||
POSTGRES_PORT: 5432
|
||||
POSTGRES_DB: sqlbot
|
||||
POSTGRES_USER: sqlbot
|
||||
POSTGRES_PASSWORD: sqlbot
|
||||
# Project basic settings
|
||||
PROJECT_NAME: "SQLBot"
|
||||
DEFAULT_PWD: "SQLBot@123456"
|
||||
# MCP settings
|
||||
MCP_IMAGE_PATH: /opt/sqlbot/images
|
||||
MCP_IMAGE_HOST: http://localhost:3000
|
||||
SERVER_IMAGE_HOST: https://sqlbot.fit2cloud.cn/images/
|
||||
# Auth & Security
|
||||
TOKEN_KEY: "X-SQLBOT-TOKEN"
|
||||
ASSISTANT_TOKEN_KEY: "X-SQLBOT-ASSISTANT-TOKEN"
|
||||
SECRET_KEY: y5txe1mRmS_JpOrUzFzHEu-kIQn3lf7ll0AOv9DQh0s
|
||||
# CORS settings
|
||||
BACKEND_CORS_ORIGINS: "http://localhost,http://localhost:5173,https://localhost,https://localhost:5173"
|
||||
# Logging
|
||||
LOG_LEVEL: "INFO"
|
||||
LOG_DIR: "/opt/sqlbot/logs"
|
||||
LOG_FORMAT: "%(asctime)s - %(name)s - %(levelname)s:%(lineno)d - %(message)s"
|
||||
SQL_DEBUG: False
|
||||
volumes:
|
||||
- ./data/sqlbot/excel:/opt/sqlbot/data/excel
|
||||
- ./data/sqlbot/images:/opt/sqlbot/images
|
||||
- ./data/sqlbot/logs:/opt/sqlbot/logs
|
||||
depends_on:
|
||||
sqlbot-db:
|
||||
condition: service_healthy
|
||||
|
||||
sqlbot-db:
|
||||
image: postgres:17.5
|
||||
container_name: sqlbot-db
|
||||
restart: always
|
||||
networks:
|
||||
- sqlbot-network
|
||||
volumes:
|
||||
- ./data/postgresql:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: sqlbot
|
||||
POSTGRES_USER: sqlbot
|
||||
POSTGRES_PASSWORD: sqlbot
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: 3s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
sqlbot-network:
|
||||
Reference in New Issue
Block a user