Configure Docker registry integration for CHORUS Services
Registry Configuration: - Updated docker-compose.yml to use registry.home.deepblack.cloud images - Created build-and-push.sh script for automated image building/pushing - Enhanced chorus.sh with registry operations (login, build, pull) - Added docker-compose.dev.yml for development with local builds - Added docker-compose.swarm.yml for production deployment Production Features: - Docker Swarm deployment with Traefik integration - All services available at *.home.deepblack.cloud domains - Production-grade resource limits and placement constraints - SSL/TLS certificates via Let's Encrypt - Load balancing and high availability Development Features: - ./chorus.sh dev - Local builds with live reloading - ./chorus.sh build - Build and push to registry - ./chorus.sh deploy - Production swarm deployment - Registry authentication with credentials Images stored at: - registry.home.deepblack.cloud/tony/chorus-whoosh-backend:latest - registry.home.deepblack.cloud/tony/chorus-whoosh-frontend:latest - registry.home.deepblack.cloud/tony/chorus-bzzz-coordinator:latest - registry.home.deepblack.cloud/tony/chorus-slurp-api:latest - registry.home.deepblack.cloud/tony/chorus-slurp-rl-tuner:latest Ready for both development and production deployment.
This commit is contained in:
44
README.md
44
README.md
@@ -8,6 +8,12 @@
|
||||
# Initialize submodules (first time only)
|
||||
./chorus.sh init
|
||||
|
||||
# Login to Docker registry
|
||||
./chorus.sh login
|
||||
|
||||
# Build and push images to registry
|
||||
./chorus.sh build
|
||||
|
||||
# Start all services
|
||||
./chorus.sh start
|
||||
|
||||
@@ -83,13 +89,22 @@ The `./chorus.sh` script provides unified management:
|
||||
|
||||
```bash
|
||||
# Service Management
|
||||
./chorus.sh start # Start all services
|
||||
./chorus.sh start # Start all services (registry images)
|
||||
./chorus.sh stop # Stop all services
|
||||
./chorus.sh restart # Restart all services
|
||||
./chorus.sh status # Show service status
|
||||
./chorus.sh dev # Start in development mode (local builds)
|
||||
|
||||
# Docker Registry Operations
|
||||
./chorus.sh login # Login to Docker registry
|
||||
./chorus.sh build # Build and push all images to registry
|
||||
./chorus.sh pull # Pull latest images from registry
|
||||
|
||||
# Production Deployment
|
||||
./chorus.sh deploy # Deploy to Docker Swarm (production)
|
||||
./chorus.sh undeploy # Remove from Docker Swarm
|
||||
|
||||
# Development & Maintenance
|
||||
./chorus.sh build # Build all docker images
|
||||
./chorus.sh update # Update submodules to latest
|
||||
./chorus.sh logs [service] # View logs
|
||||
./chorus.sh health # Check service health
|
||||
@@ -176,7 +191,10 @@ cd chorus.services
|
||||
# Or initialize submodules if already cloned
|
||||
./chorus.sh init
|
||||
|
||||
# Build all images
|
||||
# Login to Docker registry
|
||||
./chorus.sh login
|
||||
|
||||
# Build and push all images to registry
|
||||
./chorus.sh build
|
||||
|
||||
# Start services
|
||||
@@ -185,9 +203,18 @@ cd chorus.services
|
||||
|
||||
### Development Workflow
|
||||
```bash
|
||||
# Development mode (local builds, live reloading)
|
||||
./chorus.sh dev
|
||||
|
||||
# Update submodules to latest
|
||||
./chorus.sh update
|
||||
|
||||
# Rebuild and push after changes
|
||||
./chorus.sh build
|
||||
|
||||
# Pull latest images from registry
|
||||
./chorus.sh pull
|
||||
|
||||
# View logs during development
|
||||
./chorus.sh logs
|
||||
|
||||
@@ -198,6 +225,17 @@ cd chorus.services
|
||||
./chorus.sh restart
|
||||
```
|
||||
|
||||
### Production Deployment
|
||||
```bash
|
||||
# Deploy to Docker Swarm (production)
|
||||
./chorus.sh deploy
|
||||
|
||||
# Access at https://*.home.deepblack.cloud endpoints
|
||||
|
||||
# Remove from swarm
|
||||
./chorus.sh undeploy
|
||||
```
|
||||
|
||||
## 🚀 Git Submodules Guide
|
||||
|
||||
CHORUS Services uses git submodules to integrate independent components:
|
||||
|
||||
Reference in New Issue
Block a user