chore: bump defi-arbitrage submodule; operator IP and deployment doc updates
Made-with: Cursor
This commit is contained in:
@@ -34,7 +34,7 @@ GATEWAY="${GATEWAY:-192.168.11.1}"
|
||||
declare -A DBIS_CONTAINERS=(
|
||||
[10100]="dbis-postgres-primary:192.168.11.100:8:4:200:PostgreSQL Primary Database"
|
||||
[10101]="dbis-postgres-replica-1:192.168.11.101:8:4:200:PostgreSQL Replica Database"
|
||||
[10120]="dbis-redis:192.168.11.120:4:2:50:Redis Cache Server"
|
||||
[10120]="dbis-redis:192.168.11.125:4:2:50:Redis Cache Server"
|
||||
[10150]="dbis-api-primary:192.168.11.150:8:4:100:Backend API Primary Server"
|
||||
[10151]="dbis-api-secondary:192.168.11.151:8:4:100:Backend API Secondary Server"
|
||||
[10130]="dbis-frontend:192.168.11.130:4:2:50:Frontend Admin Console"
|
||||
|
||||
@@ -112,7 +112,7 @@ if [[ "$DEPLOYMENT_SUCCESS" == "true" ]]; then
|
||||
log_info ""
|
||||
log_info "Service Endpoints:"
|
||||
log_info " PostgreSQL: ${DBIS_POSTGRES_PRIMARY_IP:-192.168.11.100}:5432"
|
||||
log_info " Redis: ${DBIS_REDIS_IP:-192.168.11.120}:6379"
|
||||
log_info " Redis: ${DBIS_REDIS_IP:-192.168.11.125}:6379"
|
||||
log_info " API: http://${DBIS_API_PRIMARY_IP:-192.168.11.150}:${DBIS_API_PORT:-3000}"
|
||||
log_info " Frontend: http://${DBIS_FRONTEND_IP:-192.168.11.130}"
|
||||
log_info ""
|
||||
|
||||
@@ -166,7 +166,7 @@ create_api_container() {
|
||||
local db_name="${DBIS_DB_NAME:-dbis_core}"
|
||||
local db_user="${DBIS_DB_USER:-dbis}"
|
||||
local db_password="${DBIS_DB_PASSWORD:-}"
|
||||
local redis_host="${DBIS_REDIS_IP:-192.168.11.120}"
|
||||
local redis_host="${DBIS_REDIS_IP:-192.168.11.125}"
|
||||
local jwt_secret="${JWT_SECRET:-$(generate_jwt_secret)}"
|
||||
|
||||
pct exec "$vmid" -- bash -c "cat > ${DBIS_CORE_PROJECT_ROOT:-/opt/dbis-core}/.env <<EOF
|
||||
|
||||
@@ -135,7 +135,7 @@ log_info "Deploying Redis Cache..."
|
||||
create_redis_container \
|
||||
"${VMID_DBIS_REDIS:-10120}" \
|
||||
"dbis-redis" \
|
||||
"${DBIS_REDIS_IP:-192.168.11.120}"
|
||||
"${DBIS_REDIS_IP:-192.168.11.125}"
|
||||
|
||||
log_success "Redis deployment completed!"
|
||||
log_info ""
|
||||
|
||||
@@ -110,7 +110,7 @@ fi
|
||||
log_info ""
|
||||
log_info "Service Endpoints:"
|
||||
log_info " PostgreSQL: ${DBIS_POSTGRES_PRIMARY_IP:-192.168.11.100}:5432"
|
||||
log_info " Redis: ${DBIS_REDIS_IP:-192.168.11.120}:6379"
|
||||
log_info " Redis: ${DBIS_REDIS_IP:-192.168.11.125}:6379"
|
||||
log_info " API: http://${DBIS_API_PRIMARY_IP:-192.168.11.150}:${DBIS_API_PORT:-3000}"
|
||||
log_info " Frontend: http://${DBIS_FRONTEND_IP:-192.168.11.130}"
|
||||
log_info ""
|
||||
|
||||
@@ -48,7 +48,7 @@ test_database_connection() {
|
||||
# Test Redis connection
|
||||
test_redis_connection() {
|
||||
local vmid="$1"
|
||||
local redis_host="${2:-192.168.11.120}"
|
||||
local redis_host="${2:-192.168.11.125}"
|
||||
local redis_port="${3:-6379}"
|
||||
|
||||
log_info "Testing Redis connection to $redis_host:$redis_port..."
|
||||
|
||||
Reference in New Issue
Block a user