chore: bump defi-arbitrage submodule; operator IP and deployment doc updates
Made-with: Cursor
This commit is contained in:
@@ -19,7 +19,7 @@ Internet → Cloudflare DNS → Cloudflare Tunnel → cloudflared LXC → DBIS C
|
|||||||
| **API Secondary** | 10151 | 192.168.11.151 | 3000 | ✅ Yes (HA) |
|
| **API Secondary** | 10151 | 192.168.11.151 | 3000 | ✅ Yes (HA) |
|
||||||
| **PostgreSQL Primary** | 10100 | 192.168.11.100 | 5432 | ❌ No (Internal only) |
|
| **PostgreSQL Primary** | 10100 | 192.168.11.100 | 5432 | ❌ No (Internal only) |
|
||||||
| **PostgreSQL Replica** | 10101 | 192.168.11.101 | 5432 | ❌ No (Internal only) |
|
| **PostgreSQL Replica** | 10101 | 192.168.11.101 | 5432 | ❌ No (Internal only) |
|
||||||
| **Redis Cache** | 10120 | 192.168.11.120 | 6379 | ❌ No (Internal only) |
|
| **Redis Cache** | 10120 | 192.168.11.125 | 6379 | ❌ No (Internal only) |
|
||||||
|
|
||||||
## Recommended DNS Entries
|
## Recommended DNS Entries
|
||||||
|
|
||||||
@@ -449,7 +449,7 @@ https://dbis-api.d-bis.org/health
|
|||||||
### Internal Services (No DNS)
|
### Internal Services (No DNS)
|
||||||
```
|
```
|
||||||
PostgreSQL: 192.168.11.100:5432 (internal only)
|
PostgreSQL: 192.168.11.100:5432 (internal only)
|
||||||
Redis: 192.168.11.120:6379 (internal only)
|
Redis: 192.168.11.125:6379 (internal only)
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ ingress:
|
|||||||
| API Primary | 10150 | 192.168.11.150 | 3000 | `dbis-api.d-bis.org` | ✅ Yes |
|
| API Primary | 10150 | 192.168.11.150 | 3000 | `dbis-api.d-bis.org` | ✅ Yes |
|
||||||
| API Secondary | 10151 | 192.168.11.151 | 3000 | `dbis-api-2.d-bis.org` | ✅ Yes |
|
| API Secondary | 10151 | 192.168.11.151 | 3000 | `dbis-api-2.d-bis.org` | ✅ Yes |
|
||||||
| PostgreSQL | 10100 | 192.168.11.100 | 5432 | ❌ None | ❌ No |
|
| PostgreSQL | 10100 | 192.168.11.100 | 5432 | ❌ None | ❌ No |
|
||||||
| Redis | 10120 | 192.168.11.120 | 6379 | ❌ None | ❌ No |
|
| Redis | 10120 | 192.168.11.125 | 6379 | ❌ None | ❌ No |
|
||||||
|
|
||||||
## 🔗 Access URLs
|
## 🔗 Access URLs
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ All 6 DBIS Core containers have been successfully created and are running on Pro
|
|||||||
|------|----------|------------|--------|-------------|
|
|------|----------|------------|--------|-------------|
|
||||||
| 10100 | dbis-postgres-primary | 192.168.11.100 | ✅ Running | PostgreSQL Primary Database |
|
| 10100 | dbis-postgres-primary | 192.168.11.100 | ✅ Running | PostgreSQL Primary Database |
|
||||||
| 10101 | dbis-postgres-replica-1 | 192.168.11.101 | ✅ Running | PostgreSQL Replica Database |
|
| 10101 | dbis-postgres-replica-1 | 192.168.11.101 | ✅ Running | PostgreSQL Replica Database |
|
||||||
| 10120 | dbis-redis | 192.168.11.120 | ✅ Running | Redis Cache Server |
|
| 10120 | dbis-redis | 192.168.11.125 | ✅ Running | Redis Cache Server |
|
||||||
| 10150 | dbis-api-primary | 192.168.11.150 | ✅ Running | Backend API Primary Server |
|
| 10150 | dbis-api-primary | 192.168.11.150 | ✅ Running | Backend API Primary Server |
|
||||||
| 10151 | dbis-api-secondary | 192.168.11.151 | ✅ Running | Backend API Secondary Server |
|
| 10151 | dbis-api-secondary | 192.168.11.151 | ✅ Running | Backend API Secondary Server |
|
||||||
| 10130 | dbis-frontend | 192.168.11.130 | ✅ Running | Frontend Admin Console |
|
| 10130 | dbis-frontend | 192.168.11.130 | ✅ Running | Frontend Admin Console |
|
||||||
@@ -123,7 +123,7 @@ After deployment completes:
|
|||||||
Once deployed, services will be available at:
|
Once deployed, services will be available at:
|
||||||
|
|
||||||
- **PostgreSQL**: `192.168.11.100:5432`
|
- **PostgreSQL**: `192.168.11.100:5432`
|
||||||
- **Redis**: `192.168.11.120:6379`
|
- **Redis**: `192.168.11.125:6379`
|
||||||
- **API Primary**: `http://192.168.11.150:3000`
|
- **API Primary**: `http://192.168.11.150:3000`
|
||||||
- **API Secondary**: `http://192.168.11.151:3000`
|
- **API Secondary**: `http://192.168.11.151:3000`
|
||||||
- **Frontend**: `http://192.168.11.130`
|
- **Frontend**: `http://192.168.11.130`
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ All DBIS Core services have been successfully deployed, configured, and are now
|
|||||||
|
|
||||||
### ✅ Redis Cache (VMID 10120)
|
### ✅ Redis Cache (VMID 10120)
|
||||||
- **Status**: ✅ Running
|
- **Status**: ✅ Running
|
||||||
- **IP**: 192.168.11.120
|
- **IP**: 192.168.11.125
|
||||||
- **Port**: 6379
|
- **Port**: 6379
|
||||||
|
|
||||||
### ✅ API Primary (VMID 10150)
|
### ✅ API Primary (VMID 10150)
|
||||||
@@ -50,7 +50,7 @@ All DBIS Core services have been successfully deployed, configured, and are now
|
|||||||
## Service Endpoints
|
## Service Endpoints
|
||||||
|
|
||||||
- PostgreSQL: `192.168.11.100:5432`
|
- PostgreSQL: `192.168.11.100:5432`
|
||||||
- Redis: `192.168.11.120:6379`
|
- Redis: `192.168.11.125:6379`
|
||||||
- API Primary: `http://192.168.11.150:3000`
|
- API Primary: `http://192.168.11.150:3000`
|
||||||
- API Secondary: `http://192.168.11.151:3000`
|
- API Secondary: `http://192.168.11.151:3000`
|
||||||
- Frontend: `http://192.168.11.130`
|
- Frontend: `http://192.168.11.130`
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ All DBIS Core services have been successfully deployed, configured, and are now
|
|||||||
|
|
||||||
### ✅ Redis Cache (VMID 10120)
|
### ✅ Redis Cache (VMID 10120)
|
||||||
- **Status**: ✅ Running
|
- **Status**: ✅ Running
|
||||||
- **IP**: 192.168.11.120
|
- **IP**: 192.168.11.125
|
||||||
- **Port**: 6379
|
- **Port**: 6379
|
||||||
|
|
||||||
### ✅ API Primary (VMID 10150)
|
### ✅ API Primary (VMID 10150)
|
||||||
@@ -55,7 +55,7 @@ All DBIS Core services have been successfully deployed, configured, and are now
|
|||||||
| Service | URL | Status |
|
| Service | URL | Status |
|
||||||
|---------|-----|--------|
|
|---------|-----|--------|
|
||||||
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
||||||
| Redis | `192.168.11.120:6379` | ✅ Running |
|
| Redis | `192.168.11.125:6379` | ✅ Running |
|
||||||
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
||||||
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
||||||
| Frontend | `http://192.168.11.130` | ✅ Running |
|
| Frontend | `http://192.168.11.130` | ✅ Running |
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ All DBIS Core services have been successfully deployed, configured, and are runn
|
|||||||
|
|
||||||
### ✅ Redis Cache (VMID 10120)
|
### ✅ Redis Cache (VMID 10120)
|
||||||
- **Status**: ✅ Running
|
- **Status**: ✅ Running
|
||||||
- **IP**: 192.168.11.120
|
- **IP**: 192.168.11.125
|
||||||
- **Port**: 6379
|
- **Port**: 6379
|
||||||
- **Service**: redis-server (active)
|
- **Service**: redis-server (active)
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ All DBIS Core services have been successfully deployed, configured, and are runn
|
|||||||
| Service | URL | Status |
|
| Service | URL | Status |
|
||||||
|---------|-----|--------|
|
|---------|-----|--------|
|
||||||
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
||||||
| Redis | `192.168.11.120:6379` | ✅ Running |
|
| Redis | `192.168.11.125:6379` | ✅ Running |
|
||||||
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
||||||
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
||||||
| Frontend | `http://192.168.11.130` | ✅ Running |
|
| Frontend | `http://192.168.11.130` | ✅ Running |
|
||||||
@@ -98,7 +98,7 @@ ALLOWED_ORIGINS=http://192.168.11.130,https://192.168.11.130
|
|||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
LOG_LEVEL=info
|
LOG_LEVEL=info
|
||||||
HSM_ENABLED=false
|
HSM_ENABLED=false
|
||||||
REDIS_URL=redis://192.168.11.120:6379
|
REDIS_URL=redis://192.168.11.125:6379
|
||||||
PORT=3000
|
PORT=3000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ All DBIS Core services have been successfully deployed, configured, and are now
|
|||||||
|
|
||||||
### ✅ Redis Cache (VMID 10120)
|
### ✅ Redis Cache (VMID 10120)
|
||||||
- **Status**: ✅ Running
|
- **Status**: ✅ Running
|
||||||
- **IP**: 192.168.11.120
|
- **IP**: 192.168.11.125
|
||||||
- **Port**: 6379
|
- **Port**: 6379
|
||||||
|
|
||||||
### ✅ API Primary (VMID 10150)
|
### ✅ API Primary (VMID 10150)
|
||||||
@@ -47,7 +47,7 @@ All DBIS Core services have been successfully deployed, configured, and are now
|
|||||||
| Service | URL | Status |
|
| Service | URL | Status |
|
||||||
|---------|-----|--------|
|
|---------|-----|--------|
|
||||||
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
||||||
| Redis | `192.168.11.120:6379` | ✅ Running |
|
| Redis | `192.168.11.125:6379` | ✅ Running |
|
||||||
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
||||||
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
||||||
| Frontend | `http://192.168.11.130` | ✅ Running |
|
| Frontend | `http://192.168.11.130` | ✅ Running |
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ Once source code is in place:
|
|||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
LOG_LEVEL=info
|
LOG_LEVEL=info
|
||||||
HSM_ENABLED=false
|
HSM_ENABLED=false
|
||||||
REDIS_URL=redis://192.168.11.120:6379
|
REDIS_URL=redis://192.168.11.125:6379
|
||||||
PORT=3000
|
PORT=3000
|
||||||
EOF'"
|
EOF'"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ The deployment is complete, but the API service needs verification that it start
|
|||||||
## Service Endpoints
|
## Service Endpoints
|
||||||
|
|
||||||
- PostgreSQL: `192.168.11.100:5432`
|
- PostgreSQL: `192.168.11.100:5432`
|
||||||
- Redis: `192.168.11.120:6379`
|
- Redis: `192.168.11.125:6379`
|
||||||
- API Primary: `http://192.168.11.150:3000`
|
- API Primary: `http://192.168.11.150:3000`
|
||||||
- API Secondary: `http://192.168.11.151:3000`
|
- API Secondary: `http://192.168.11.151:3000`
|
||||||
- Frontend: `http://192.168.11.130`
|
- Frontend: `http://192.168.11.130`
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ ssh root@192.168.11.10 "pct exec 10150 -- bash -c 'source /root/.nvm/nvm.sh && c
|
|||||||
|
|
||||||
Once Prisma issues are fixed:
|
Once Prisma issues are fixed:
|
||||||
- PostgreSQL: `192.168.11.100:5432`
|
- PostgreSQL: `192.168.11.100:5432`
|
||||||
- Redis: `192.168.11.120:6379`
|
- Redis: `192.168.11.125:6379`
|
||||||
- API Primary: `http://192.168.11.150:3000`
|
- API Primary: `http://192.168.11.150:3000`
|
||||||
- API Secondary: `http://192.168.11.151:3000`
|
- API Secondary: `http://192.168.11.151:3000`
|
||||||
- Frontend: `http://192.168.11.130`
|
- Frontend: `http://192.168.11.130`
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ These issues are in the source code repository and need to be fixed there.
|
|||||||
## Service Endpoints (When Build Issues Resolved)
|
## Service Endpoints (When Build Issues Resolved)
|
||||||
|
|
||||||
- PostgreSQL: `192.168.11.100:5432`
|
- PostgreSQL: `192.168.11.100:5432`
|
||||||
- Redis: `192.168.11.120:6379`
|
- Redis: `192.168.11.125:6379`
|
||||||
- API Primary: `http://192.168.11.150:3000`
|
- API Primary: `http://192.168.11.150:3000`
|
||||||
- API Secondary: `http://192.168.11.151:3000`
|
- API Secondary: `http://192.168.11.151:3000`
|
||||||
- Frontend: `http://192.168.11.130`
|
- Frontend: `http://192.168.11.130`
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ ALLOWED_ORIGINS=http://192.168.11.130,https://192.168.11.130
|
|||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
LOG_LEVEL=info
|
LOG_LEVEL=info
|
||||||
HSM_ENABLED=false
|
HSM_ENABLED=false
|
||||||
REDIS_URL=redis://192.168.11.120:6379
|
REDIS_URL=redis://192.168.11.125:6379
|
||||||
PORT=3000
|
PORT=3000
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Based on the existing Proxmox VMID allocation strategy, DBIS Core services will
|
|||||||
|---------|------|----------|------------|-------------|
|
|---------|------|----------|------------|-------------|
|
||||||
| **PostgreSQL Primary** | 10100 | dbis-postgres-primary | 192.168.11.105 | Primary database server |
|
| **PostgreSQL Primary** | 10100 | dbis-postgres-primary | 192.168.11.105 | Primary database server |
|
||||||
| **PostgreSQL Replica 1** | 10101 | dbis-postgres-replica-1 | 192.168.11.106 | Database replica (optional) |
|
| **PostgreSQL Replica 1** | 10101 | dbis-postgres-replica-1 | 192.168.11.106 | Database replica (optional) |
|
||||||
| **Redis Cache** | 10120 | dbis-redis | 192.168.11.120 | Redis cache server |
|
| **Redis Cache** | 10120 | dbis-redis | 192.168.11.125 | Redis cache server |
|
||||||
| **Backend API (Primary)** | 10150 | dbis-api-primary | 192.168.11.155 | Main API server |
|
| **Backend API (Primary)** | 10150 | dbis-api-primary | 192.168.11.155 | Main API server |
|
||||||
| **Backend API (Secondary)** | 10151 | dbis-api-secondary | 192.168.11.156 | Secondary API server (HA) |
|
| **Backend API (Secondary)** | 10151 | dbis-api-secondary | 192.168.11.156 | Secondary API server (HA) |
|
||||||
| **Frontend Admin Console** | 10130 | dbis-frontend | 192.168.11.130 | Admin console web interface |
|
| **Frontend Admin Console** | 10130 | dbis-frontend | 192.168.11.130 | Admin console web interface |
|
||||||
@@ -74,7 +74,7 @@ Based on the existing Proxmox VMID allocation strategy, DBIS Core services will
|
|||||||
- **Disk**: 50 GB
|
- **Disk**: 50 GB
|
||||||
- **OS Template**: `ubuntu-22.04-standard`
|
- **OS Template**: `ubuntu-22.04-standard`
|
||||||
- **Network**: Bridge `vmbr0`
|
- **Network**: Bridge `vmbr0`
|
||||||
- **IP Address**: 192.168.11.120
|
- **IP Address**: 192.168.11.125
|
||||||
- **Hostname**: `dbis-redis`
|
- **Hostname**: `dbis-redis`
|
||||||
- **Unprivileged**: Yes
|
- **Unprivileged**: Yes
|
||||||
- **Features**: `nesting=1`
|
- **Features**: `nesting=1`
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ All containers are running:
|
|||||||
|
|
||||||
- ✅ 10100: dbis-postgres-primary (192.168.11.100)
|
- ✅ 10100: dbis-postgres-primary (192.168.11.100)
|
||||||
- ✅ 10101: dbis-postgres-replica-1 (192.168.11.101)
|
- ✅ 10101: dbis-postgres-replica-1 (192.168.11.101)
|
||||||
- ✅ 10120: dbis-redis (192.168.11.120)
|
- ✅ 10120: dbis-redis (192.168.11.125)
|
||||||
- ✅ 10150: dbis-api-primary (192.168.11.150)
|
- ✅ 10150: dbis-api-primary (192.168.11.150)
|
||||||
- ✅ 10151: dbis-api-secondary (192.168.11.151)
|
- ✅ 10151: dbis-api-secondary (192.168.11.151)
|
||||||
- ✅ 10130: dbis-frontend (192.168.11.130)
|
- ✅ 10130: dbis-frontend (192.168.11.130)
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ The Prisma schema needs to be fixed in the source repository by:
|
|||||||
### Service Endpoints (Ready Once Schema Fixed)
|
### Service Endpoints (Ready Once Schema Fixed)
|
||||||
|
|
||||||
- PostgreSQL: `192.168.11.100:5432`
|
- PostgreSQL: `192.168.11.100:5432`
|
||||||
- Redis: `192.168.11.120:6379`
|
- Redis: `192.168.11.125:6379`
|
||||||
- API Primary: `http://192.168.11.150:3000`
|
- API Primary: `http://192.168.11.150:3000`
|
||||||
- API Secondary: `http://192.168.11.151:3000`
|
- API Secondary: `http://192.168.11.151:3000`
|
||||||
- Frontend: `http://192.168.11.130`
|
- Frontend: `http://192.168.11.130`
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ All DBIS Core services have been successfully deployed, configured, and are runn
|
|||||||
|
|
||||||
### ✅ Redis Cache (VMID 10120)
|
### ✅ Redis Cache (VMID 10120)
|
||||||
- **Status**: ✅ Running
|
- **Status**: ✅ Running
|
||||||
- **IP**: 192.168.11.120
|
- **IP**: 192.168.11.125
|
||||||
- **Port**: 6379
|
- **Port**: 6379
|
||||||
|
|
||||||
### ✅ API Primary (VMID 10150)
|
### ✅ API Primary (VMID 10150)
|
||||||
@@ -48,7 +48,7 @@ All DBIS Core services have been successfully deployed, configured, and are runn
|
|||||||
| Service | URL | Status |
|
| Service | URL | Status |
|
||||||
|---------|-----|--------|
|
|---------|-----|--------|
|
||||||
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
||||||
| Redis | `192.168.11.120:6379` | ✅ Running |
|
| Redis | `192.168.11.125:6379` | ✅ Running |
|
||||||
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
||||||
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
||||||
| Frontend | `http://192.168.11.130` | ✅ Running |
|
| Frontend | `http://192.168.11.130` | ✅ Running |
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ All DBIS Core services have been successfully deployed, configured, and are now
|
|||||||
|
|
||||||
### ✅ Redis Cache (VMID 10120)
|
### ✅ Redis Cache (VMID 10120)
|
||||||
- **Status**: ✅ Running
|
- **Status**: ✅ Running
|
||||||
- **IP**: 192.168.11.120
|
- **IP**: 192.168.11.125
|
||||||
- **Port**: 6379
|
- **Port**: 6379
|
||||||
|
|
||||||
### ✅ API Primary (VMID 10150)
|
### ✅ API Primary (VMID 10150)
|
||||||
@@ -55,7 +55,7 @@ All DBIS Core services have been successfully deployed, configured, and are now
|
|||||||
| Service | URL | Status |
|
| Service | URL | Status |
|
||||||
|---------|-----|--------|
|
|---------|-----|--------|
|
||||||
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
| PostgreSQL | `192.168.11.100:5432` | ✅ Running |
|
||||||
| Redis | `192.168.11.120:6379` | ✅ Running |
|
| Redis | `192.168.11.125:6379` | ✅ Running |
|
||||||
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
| API Primary | `http://192.168.11.150:3000` | ✅ Running |
|
||||||
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
| API Secondary | `http://192.168.11.151:3000` | ✅ Running |
|
||||||
| Frontend | `http://192.168.11.130` | ✅ Running |
|
| Frontend | `http://192.168.11.130` | ✅ Running |
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ For existing containers, you can:
|
|||||||
## Service Endpoints (When Fully Deployed)
|
## Service Endpoints (When Fully Deployed)
|
||||||
|
|
||||||
- PostgreSQL: 192.168.11.100:5432
|
- PostgreSQL: 192.168.11.100:5432
|
||||||
- Redis: 192.168.11.120:6379
|
- Redis: 192.168.11.125:6379
|
||||||
- API Primary: http://192.168.11.150:3000
|
- API Primary: http://192.168.11.150:3000
|
||||||
- API Secondary: http://192.168.11.151:3000
|
- API Secondary: http://192.168.11.151:3000
|
||||||
- Frontend: http://192.168.11.130
|
- Frontend: http://192.168.11.130
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ Start with: `scripts/deployment/deploy-postgresql.sh`
|
|||||||
|
|
||||||
### IP Addresses
|
### IP Addresses
|
||||||
- PostgreSQL: 192.168.11.100-101
|
- PostgreSQL: 192.168.11.100-101
|
||||||
- Redis: 192.168.11.120
|
- Redis: 192.168.11.125
|
||||||
- Frontend: 192.168.11.130
|
- Frontend: 192.168.11.130
|
||||||
- API: 192.168.11.150-151
|
- API: 192.168.11.150-151
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ sudo ./scripts/deployment/deploy-all.sh
|
|||||||
| Service | VMID | IP | Port | Status |
|
| Service | VMID | IP | Port | Status |
|
||||||
|---------|------|-----|------|--------|
|
|---------|------|-----|------|--------|
|
||||||
| PostgreSQL | 10100 | 192.168.11.100 | 5432 | Ready |
|
| PostgreSQL | 10100 | 192.168.11.100 | 5432 | Ready |
|
||||||
| Redis | 10120 | 192.168.11.120 | 6379 | Ready |
|
| Redis | 10120 | 192.168.11.125 | 6379 | Ready |
|
||||||
| Frontend | 10130 | 192.168.11.130 | 80,443 | Ready |
|
| Frontend | 10130 | 192.168.11.130 | 80,443 | Ready |
|
||||||
| API Primary | 10150 | 192.168.11.150 | 3000 | Ready |
|
| API Primary | 10150 | 192.168.11.150 | 3000 | Ready |
|
||||||
| API Secondary | 10151 | 192.168.11.151 | 3000 | Ready |
|
| API Secondary | 10151 | 192.168.11.151 | 3000 | Ready |
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|---------|------|----------|------------|
|
|---------|------|----------|------------|
|
||||||
| **PostgreSQL Primary** | 10100 | dbis-postgres-primary | 192.168.11.105 |
|
| **PostgreSQL Primary** | 10100 | dbis-postgres-primary | 192.168.11.105 |
|
||||||
| **PostgreSQL Replica** | 10101 | dbis-postgres-replica-1 | 192.168.11.106 |
|
| **PostgreSQL Replica** | 10101 | dbis-postgres-replica-1 | 192.168.11.106 |
|
||||||
| **Redis Cache** | 10120 | dbis-redis | 192.168.11.120 |
|
| **Redis Cache** | 10120 | dbis-redis | 192.168.11.125 |
|
||||||
| **Backend API Primary** | 10150 | dbis-api-primary | 192.168.11.155 |
|
| **Backend API Primary** | 10150 | dbis-api-primary | 192.168.11.155 |
|
||||||
| **Backend API Secondary** | 10151 | dbis-api-secondary | 192.168.11.156 |
|
| **Backend API Secondary** | 10151 | dbis-api-secondary | 192.168.11.156 |
|
||||||
| **Frontend Admin Console** | 10130 | dbis-frontend | 192.168.11.130 |
|
| **Frontend Admin Console** | 10130 | dbis-frontend | 192.168.11.130 |
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ DBIS_NETWORK_BRIDGE="${PROXMOX_BRIDGE:-vmbr0}"
|
|||||||
# IP Address Allocation
|
# IP Address Allocation
|
||||||
# Note: Database IPs adjusted to avoid conflicts with blockchain validators (192.168.11.100-104)
|
# Note: Database IPs adjusted to avoid conflicts with blockchain validators (192.168.11.100-104)
|
||||||
DBIS_DB_IP_START="192.168.11.105" # Database range: 192.168.11.105-119 (adjusted from .100)
|
DBIS_DB_IP_START="192.168.11.105" # Database range: 192.168.11.105-119 (adjusted from .100)
|
||||||
DBIS_CACHE_IP_START="192.168.11.120" # Cache range: 192.168.11.120-129
|
DBIS_CACHE_IP_START="192.168.11.120" # Cache allocation band .120–.129; VMID 10120 dbis-redis uses DBIS_REDIS_IP
|
||||||
DBIS_FRONTEND_IP_START="192.168.11.130" # Frontend range: 192.168.11.130-149
|
DBIS_FRONTEND_IP_START="192.168.11.130" # Frontend range: 192.168.11.130-149
|
||||||
# Note: API IPs adjusted to avoid conflicts with blockchain sentries (192.168.11.150-154)
|
# Note: API IPs adjusted to avoid conflicts with blockchain sentries (192.168.11.150-154)
|
||||||
DBIS_API_IP_START="192.168.11.155" # API range: 192.168.11.155-199 (adjusted from .150)
|
DBIS_API_IP_START="192.168.11.155" # API range: 192.168.11.155-199 (adjusted from .150)
|
||||||
@@ -73,7 +73,7 @@ DBIS_API_IP_START="192.168.11.155" # API range: 192.168.11.155-199 (adjuste
|
|||||||
# Specific IP Addresses for Initial Deployment
|
# Specific IP Addresses for Initial Deployment
|
||||||
DBIS_POSTGRES_PRIMARY_IP="192.168.11.105" # Updated from 192.168.11.100 (conflict resolved)
|
DBIS_POSTGRES_PRIMARY_IP="192.168.11.105" # Updated from 192.168.11.100 (conflict resolved)
|
||||||
DBIS_POSTGRES_REPLICA_IP="192.168.11.106" # Updated from 192.168.11.101 (conflict resolved)
|
DBIS_POSTGRES_REPLICA_IP="192.168.11.106" # Updated from 192.168.11.101 (conflict resolved)
|
||||||
DBIS_REDIS_IP="192.168.11.120"
|
DBIS_REDIS_IP="192.168.11.125"
|
||||||
DBIS_API_PRIMARY_IP="192.168.11.155" # Updated from 192.168.11.150 (conflict resolved)
|
DBIS_API_PRIMARY_IP="192.168.11.155" # Updated from 192.168.11.150 (conflict resolved)
|
||||||
DBIS_API_SECONDARY_IP="192.168.11.156" # Updated from 192.168.11.151 (conflict resolved)
|
DBIS_API_SECONDARY_IP="192.168.11.156" # Updated from 192.168.11.151 (conflict resolved)
|
||||||
DBIS_FRONTEND_IP="192.168.11.130"
|
DBIS_FRONTEND_IP="192.168.11.130"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
|
|||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk --no-cache add ca-certificates curl
|
RUN apk update && apk upgrade --no-cache && apk add --no-cache ca-certificates curl
|
||||||
|
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ GATEWAY="${GATEWAY:-192.168.11.1}"
|
|||||||
declare -A DBIS_CONTAINERS=(
|
declare -A DBIS_CONTAINERS=(
|
||||||
[10100]="dbis-postgres-primary:192.168.11.100:8:4:200:PostgreSQL Primary Database"
|
[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"
|
[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"
|
[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"
|
[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"
|
[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 ""
|
||||||
log_info "Service Endpoints:"
|
log_info "Service Endpoints:"
|
||||||
log_info " PostgreSQL: ${DBIS_POSTGRES_PRIMARY_IP:-192.168.11.100}:5432"
|
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 " 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 " Frontend: http://${DBIS_FRONTEND_IP:-192.168.11.130}"
|
||||||
log_info ""
|
log_info ""
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ create_api_container() {
|
|||||||
local db_name="${DBIS_DB_NAME:-dbis_core}"
|
local db_name="${DBIS_DB_NAME:-dbis_core}"
|
||||||
local db_user="${DBIS_DB_USER:-dbis}"
|
local db_user="${DBIS_DB_USER:-dbis}"
|
||||||
local db_password="${DBIS_DB_PASSWORD:-}"
|
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)}"
|
local jwt_secret="${JWT_SECRET:-$(generate_jwt_secret)}"
|
||||||
|
|
||||||
pct exec "$vmid" -- bash -c "cat > ${DBIS_CORE_PROJECT_ROOT:-/opt/dbis-core}/.env <<EOF
|
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 \
|
create_redis_container \
|
||||||
"${VMID_DBIS_REDIS:-10120}" \
|
"${VMID_DBIS_REDIS:-10120}" \
|
||||||
"dbis-redis" \
|
"dbis-redis" \
|
||||||
"${DBIS_REDIS_IP:-192.168.11.120}"
|
"${DBIS_REDIS_IP:-192.168.11.125}"
|
||||||
|
|
||||||
log_success "Redis deployment completed!"
|
log_success "Redis deployment completed!"
|
||||||
log_info ""
|
log_info ""
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ fi
|
|||||||
log_info ""
|
log_info ""
|
||||||
log_info "Service Endpoints:"
|
log_info "Service Endpoints:"
|
||||||
log_info " PostgreSQL: ${DBIS_POSTGRES_PRIMARY_IP:-192.168.11.100}:5432"
|
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 " 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 " Frontend: http://${DBIS_FRONTEND_IP:-192.168.11.130}"
|
||||||
log_info ""
|
log_info ""
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ test_database_connection() {
|
|||||||
# Test Redis connection
|
# Test Redis connection
|
||||||
test_redis_connection() {
|
test_redis_connection() {
|
||||||
local vmid="$1"
|
local vmid="$1"
|
||||||
local redis_host="${2:-192.168.11.120}"
|
local redis_host="${2:-192.168.11.125}"
|
||||||
local redis_port="${3:-6379}"
|
local redis_port="${3:-6379}"
|
||||||
|
|
||||||
log_info "Testing Redis connection to $redis_host:$redis_port..."
|
log_info "Testing Redis connection to $redis_host:$redis_port..."
|
||||||
|
|||||||
Submodule src/core/defi/arbitrage updated: 73e8d30190...161f46fffd
Reference in New Issue
Block a user