Files
chorus-services/docker-compose.yml
tony ecca86b0fe 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.
2025-08-01 09:23:26 +10:00

153 lines
3.9 KiB
YAML

version: '3.8'
services:
# WHOOSH - Orchestration Platform
whoosh-backend:
image: registry.home.deepblack.cloud/tony/chorus-whoosh-backend:latest
container_name: chorus_whoosh_backend
ports:
- "8087:8000"
environment:
- DATABASE_URL=postgresql://chorus:choruspass@postgres:5432/chorus_whoosh
- REDIS_URL=redis://redis:6379
- CORS_ORIGINS=http://localhost:3001,https://whoosh.home.deepblack.cloud
- ENVIRONMENT=development
depends_on:
- postgres
- redis
networks:
- chorus_network
volumes:
- ./modules/whoosh/backend:/app
- ./modules/whoosh/config:/app/config
whoosh-frontend:
image: registry.home.deepblack.cloud/tony/chorus-whoosh-frontend:latest
container_name: chorus_whoosh_frontend
ports:
- "3001:3000"
environment:
- REACT_APP_API_URL=http://localhost:8087
- REACT_APP_WS_URL=ws://localhost:8087
depends_on:
- whoosh-backend
networks:
- chorus_network
volumes:
- ./modules/whoosh/frontend:/app
- /app/node_modules
# BZZZ - P2P Agent Coordination
bzzz-coordinator:
image: registry.home.deepblack.cloud/tony/chorus-bzzz-coordinator:latest
container_name: chorus_bzzz_coordinator
ports:
- "4001:4001" # libp2p port
- "8080:8080" # HTTP API port
environment:
- BZZZ_NODE_ENV=development
- BZZZ_LOG_LEVEL=info
networks:
- chorus_network
- host # Needed for P2P discovery
volumes:
- ./modules/bzzz/config:/app/config
- ./modules/bzzz/data:/app/data
# SLURP - Context Management (HCFS)
slurp-api:
image: registry.home.deepblack.cloud/tony/chorus-slurp-api:latest
container_name: chorus_slurp_api
ports:
- "8088:8000"
environment:
- HCFS_DATABASE_URL=sqlite:///data/hcfs.db
- HCFS_LOG_LEVEL=info
- HCFS_AUTH_ENABLED=true
networks:
- chorus_network
volumes:
- ./modules/slurp/data:/app/data
- ./modules/slurp/config:/app/config
# RL Context SLURP (COOEE equivalent)
slurp-rl-tuner:
image: registry.home.deepblack.cloud/tony/chorus-slurp-rl-tuner:latest
container_name: chorus_slurp_rl_tuner
ports:
- "8089:8000"
environment:
- RL_TUNER_DATABASE_URL=postgresql://chorus:choruspass@postgres:5432/chorus_rl_tuner
- HCFS_API_URL=http://slurp-api:8000
- BZZZ_API_URL=http://bzzz-coordinator:8080
depends_on:
- postgres
- slurp-api
- bzzz-coordinator
networks:
- chorus_network
# Shared Infrastructure
postgres:
image: postgres:15
container_name: chorus_postgres
environment:
- POSTGRES_DB=chorus
- POSTGRES_USER=chorus
- POSTGRES_PASSWORD=choruspass
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
networks:
- chorus_network
redis:
image: redis:7-alpine
container_name: chorus_redis
ports:
- "6380:6379"
volumes:
- redis_data:/data
networks:
- chorus_network
# Monitoring Stack
prometheus:
image: prom/prometheus:latest
container_name: chorus_prometheus
ports:
- "9092:9090"
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
networks:
- chorus_network
grafana:
image: grafana/grafana:latest
container_name: chorus_grafana
ports:
- "3002:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=chorusadmin
volumes:
- grafana_data:/var/lib/grafana
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources
networks:
- chorus_network
volumes:
postgres_data:
redis_data:
prometheus_data:
grafana_data:
networks:
chorus_network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16