-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
95 lines (91 loc) · 2.55 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
95 lines (91 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
postgres:
image: registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6
container_name: sqlbot-postgres
restart: always
privileged: true
networks:
- sqlbot-network
environment:
POSTGRES_DB: sqlbot
POSTGRES_USER: root
POSTGRES_PASSWORD: "123456"
ports:
- "5433:5432"
volumes:
- ./data/postgresql:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d sqlbot"]
interval: 10s
timeout: 5s
retries: 10
data-python:
build:
context: .
dockerfile: Dockerfile
container_name: sqlbot-data-python
restart: always
privileged: true
depends_on:
postgres:
condition: service_healthy
networks:
- sqlbot-network
environment:
POSTGRES_SERVER: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: sqlbot
POSTGRES_USER: root
POSTGRES_PASSWORD: "123456"
PROJECT_NAME: "SQLBot"
DEFAULT_PWD: "SQLBot@123456"
MCP_IMAGE_HOST: http://g2-ssr:3000
SERVER_IMAGE_HOST: http://localhost:8000/images/
SECRET_KEY: y5txe1mRmS_JpOrUzFzHEu-kIQn3lf7ll0AOv9DQh0s
BACKEND_CORS_ORIGINS: "http://localhost,http://localhost:5173,https://localhost,https://localhost:5173"
LOG_LEVEL: "INFO"
SQL_DEBUG: False
volumes:
- ./data/sqlbot/excel:/opt/sqlbot/data/excel
- ./data/sqlbot/file:/opt/sqlbot/data/file
- ./data/sqlbot/images:/opt/sqlbot/images
- ./data/sqlbot/logs:/opt/sqlbot/app/logs
entrypoint: ["/bin/sh", "/opt/sqlbot/app/start-python.sh"]
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8001/internal/healthz || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
api-node:
build:
context: ./api-node
dockerfile: Dockerfile
container_name: sqlbot-api-node
restart: always
networks:
- sqlbot-network
depends_on:
- data-python
ports:
- 8000:8000
environment:
PORT: 8000
DATA_PYTHON_BASE_URL: http://data-python:8001
MCP_PYTHON_BASE_URL: http://data-python:8002
BACKEND_CORS_ORIGINS: "http://localhost,http://localhost:5173,https://localhost,https://localhost:5173"
GATEWAY_REQUEST_TIMEOUT_MS: 300000
GATEWAY_HEALTH_TIMEOUT_MS: 3000
GATEWAY_BODY_LIMIT_BYTES: 524288000
g2-ssr:
build:
context: ./g2-ssr
dockerfile: Dockerfile
container_name: sqlbot-g2-ssr
restart: always
networks:
- sqlbot-network
ports:
- 3000:3000
networks:
sqlbot-network: