Files
dbis_core/DEPLOYMENT_READY.md

88 lines
2.3 KiB
Markdown
Raw Permalink Normal View History

2026-01-02 20:27:42 -08:00
# DBIS Core Deployment - Ready to Deploy
## Status: ✅ Ready
All containers are created and deployment scripts are copied to the Proxmox host.
## Files Copied to Proxmox Host
**Location**: `/root/proxmox/dbis_core/`
-`scripts/` - All deployment and management scripts
-`config/` - Configuration files
-`templates/` - Service templates (nginx, systemd, etc.)
## Deployment Command
Run the following command to deploy all services:
```bash
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/deployment && ./deploy-all.sh"
```
Or deploy services individually:
```bash
# Deploy PostgreSQL
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/deployment && ./deploy-postgresql.sh"
# Deploy Redis
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/deployment && ./deploy-redis.sh"
# Deploy API
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/deployment && ./deploy-api.sh"
# Deploy Frontend
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/deployment && ./deploy-frontend.sh"
```
## Deployment Order
The `deploy-all.sh` script will automatically deploy services in the correct order:
1. **Phase 1: Foundation Services**
- PostgreSQL (primary + replica)
- Redis
2. **Phase 2: Application Services**
- Backend API (primary + secondary)
- Frontend Admin Console
## Post-Deployment Tasks
After deployment completes:
1. **Configure Database**
```bash
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/deployment && ./configure-database.sh"
```
2. **Check Service Status**
```bash
ssh root@192.168.11.10 "cd /root/proxmox/dbis_core/scripts/management && ./status.sh"
```
3. **Test API Health**
```bash
curl http://192.168.11.150:3000/health
```
## Container Status
All containers are running:
- ✅ 10100: dbis-postgres-primary (192.168.11.100)
- ✅ 10101: dbis-postgres-replica-1 (192.168.11.101)
- ✅ 10120: dbis-redis (192.168.11.120)
- ✅ 10150: dbis-api-primary (192.168.11.150)
- ✅ 10151: dbis-api-secondary (192.168.11.151)
- ✅ 10130: dbis-frontend (192.168.11.130)
## Notes
- All scripts are executable and have correct permissions
- Configuration files are in place
- Scripts will automatically detect and use existing containers
- Deployment scripts must be run as root on the Proxmox host