Complete CHORUS Services integration with unified orchestration
- Docker Compose orchestration for all services - Unified management script (chorus.sh) with full lifecycle controls - Monitoring stack (Prometheus on 9092, Grafana on 3002) - Database initialization and networking configuration - Comprehensive documentation and usage guides - Port conflict resolution (avoid Cockpit on 9090) Components integrated: - WHOOSH: Orchestration platform (ports 3001, 8087) - BZZZ: P2P coordination system (port 8080) - SLURP: Context management system (port 8088) - COOEE: RL feedback system (port 8089) - Infrastructure: PostgreSQL, Redis, monitoring stack Ready for deployment and development.
This commit is contained in:
157
docker-compose.yml
Normal file
157
docker-compose.yml
Normal file
@@ -0,0 +1,157 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# WHOOSH - Orchestration Platform
|
||||
whoosh-backend:
|
||||
build: ./modules/whoosh/backend
|
||||
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:
|
||||
build: ./modules/whoosh/frontend
|
||||
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:
|
||||
build:
|
||||
context: ./modules/bzzz
|
||||
dockerfile: Dockerfile
|
||||
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:
|
||||
build: ./modules/slurp/hcfs-python
|
||||
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:
|
||||
build:
|
||||
context: ./modules/slurp
|
||||
dockerfile: Dockerfile.rl-tuner
|
||||
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
|
||||
Reference in New Issue
Block a user