feat(datasource): 完成 M03 数据源配置与熔断巡检
交付三种引擎登记、草稿/已保存连接测试、可逆启用、每源熔断与 Cron 巡检,以及控制台页面;用户确认收尾后标 DONE_LOCAL。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f17bf19709
commit
e6d37d176d
98 files changed
+9097
-91
No files matched your search
@@ -39,6 +39,29 @@ services:
|
||||
volumes:
|
||||
- watchman_dev_postgres:/var/lib/postgresql/data
|
||||
|
||||
# M03 S2: probe target for SQL Server connection tests only. Not the platform database.
|
||||
# Starts only with --profile source-sqlserver. SA password and host port come from
|
||||
# .env.local; there is deliberately no default password here.
|
||||
sqlserver:
|
||||
profiles: ["source-sqlserver"]
|
||||
image: mcr.microsoft.com/mssql/server:2022-latest
|
||||
container_name: watchman-dev-sqlserver
|
||||
environment:
|
||||
ACCEPT_EULA: "Y"
|
||||
MSSQL_SA_PASSWORD: ${WATCHMAN_TEST_SQLSERVER_PASSWORD:?set WATCHMAN_TEST_SQLSERVER_PASSWORD in .env.local}
|
||||
ports:
|
||||
- "127.0.0.1:${WATCHMAN_TEST_SQLSERVER_PORT:-1433}:1433"
|
||||
healthcheck:
|
||||
test:
|
||||
- "CMD-SHELL"
|
||||
- "/opt/mssql-tools18/bin/sqlcmd -C -S localhost -U sa -P \"$$MSSQL_SA_PASSWORD\" -Q \"SELECT 1\" -b -o /dev/null"
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 24
|
||||
start_period: 20s
|
||||
volumes:
|
||||
- watchman_dev_sqlserver:/var/opt/mssql
|
||||
|
||||
api:
|
||||
profiles: ["app"]
|
||||
build:
|
||||
@@ -114,3 +137,4 @@ services:
|
||||
volumes:
|
||||
watchman_dev_rabbitmq:
|
||||
watchman_dev_postgres:
|
||||
watchman_dev_sqlserver:
|
||||
Reference in new issue
Block a user