fix(debezium): outbox connector 配置支持 standalone 模式 (postgres-2)
- database.hostname 从硬编码 "postgres" 改为 ${DEBEZIUM_DB_HOST:-postgres}
- database.user/password 改为环境变量替换 ${POSTGRES_USER}/${POSTGRES_PASSWORD}
- standalone 模式设置 DEBEZIUM_DB_HOST=postgres-2
- shared 模式不设置,默认值 postgres 保持不变
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2a5b51aa8d
commit
0204f748e6
|
|
@ -271,6 +271,8 @@ load_env() {
|
|||
export KAFKA_BROKERS="${KAFKA_BROKERS:-192.168.1.111:9093}"
|
||||
export REDIS_HOST="${REDIS_HOST:-redis-2}"
|
||||
export RWA_NETWORK_NAME="rwa-2-network"
|
||||
# Debezium outbox connector 连接的数据库主机名 (standalone 用 postgres-2)
|
||||
export DEBEZIUM_DB_HOST="postgres-2"
|
||||
# MPC system 在 1.0 服务器上
|
||||
export MPC_ACCOUNT_SERVICE_URL="${MPC_ACCOUNT_SERVICE_URL:-http://192.168.1.111:4000}"
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
|
||||
"tasks.max": "1",
|
||||
|
||||
"database.hostname": "postgres",
|
||||
"database.hostname": "${DEBEZIUM_DB_HOST:-postgres}",
|
||||
"database.port": "5432",
|
||||
"database.user": "rwa_user",
|
||||
"database.password": "your_secure_password_here",
|
||||
"database.user": "${POSTGRES_USER:-rwa_user}",
|
||||
"database.password": "${POSTGRES_PASSWORD:-your_secure_password_here}",
|
||||
"database.dbname": "rwa_auth",
|
||||
|
||||
"topic.prefix": "cdc.auth",
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
|
||||
"tasks.max": "1",
|
||||
|
||||
"database.hostname": "postgres",
|
||||
"database.hostname": "${DEBEZIUM_DB_HOST:-postgres}",
|
||||
"database.port": "5432",
|
||||
"database.user": "rwa_user",
|
||||
"database.password": "your_secure_password_here",
|
||||
"database.user": "${POSTGRES_USER:-rwa_user}",
|
||||
"database.password": "${POSTGRES_PASSWORD:-your_secure_password_here}",
|
||||
"database.dbname": "rwa_contribution",
|
||||
|
||||
"topic.prefix": "cdc.contribution",
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
|
||||
"tasks.max": "1",
|
||||
|
||||
"database.hostname": "postgres",
|
||||
"database.hostname": "${DEBEZIUM_DB_HOST:-postgres}",
|
||||
"database.port": "5432",
|
||||
"database.user": "rwa_user",
|
||||
"database.password": "your_secure_password_here",
|
||||
"database.user": "${POSTGRES_USER:-rwa_user}",
|
||||
"database.password": "${POSTGRES_PASSWORD:-your_secure_password_here}",
|
||||
"database.dbname": "rwa_mining",
|
||||
|
||||
"topic.prefix": "cdc.mining",
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
|
||||
"tasks.max": "1",
|
||||
|
||||
"database.hostname": "postgres",
|
||||
"database.hostname": "${DEBEZIUM_DB_HOST:-postgres}",
|
||||
"database.port": "5432",
|
||||
"database.user": "rwa_user",
|
||||
"database.password": "your_secure_password_here",
|
||||
"database.user": "${POSTGRES_USER:-rwa_user}",
|
||||
"database.password": "${POSTGRES_PASSWORD:-your_secure_password_here}",
|
||||
"database.dbname": "rwa_mining_wallet",
|
||||
|
||||
"topic.prefix": "cdc.mining-wallet",
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
|
||||
"tasks.max": "1",
|
||||
|
||||
"database.hostname": "postgres",
|
||||
"database.hostname": "${DEBEZIUM_DB_HOST:-postgres}",
|
||||
"database.port": "5432",
|
||||
"database.user": "rwa_user",
|
||||
"database.password": "your_secure_password_here",
|
||||
"database.user": "${POSTGRES_USER:-rwa_user}",
|
||||
"database.password": "${POSTGRES_PASSWORD:-your_secure_password_here}",
|
||||
"database.dbname": "rwa_trading",
|
||||
|
||||
"topic.prefix": "cdc.trading",
|
||||
|
|
|
|||
Loading…
Reference in New Issue