feat: Add CHORUS teaser website with mobile-responsive design

- Created complete Next.js 15 teaser website with CHORUS brand styling
- Implemented mobile-responsive 3D logo (128px mobile, 512px desktop)
- Added proper Exo font loading via Next.js Google Fonts for iOS/Chrome compatibility
- Built comprehensive early access form with GDPR compliance and rate limiting
- Integrated PostgreSQL database with complete schema for lead capture
- Added scroll indicators that auto-hide when scrolling begins
- Optimized mobile modal forms with proper scrolling and submit button access
- Deployed via Docker Swarm with Traefik SSL termination at chorus.services
- Includes database migrations, consent tracking, and email notifications

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
tony
2025-08-26 13:57:30 +10:00
parent 630d1c26ad
commit c8fb816775
236 changed files with 17525 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
# Docker Compose Override for Development
# This file provides local build configurations for development
# Use: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
version: '3.8'
services:
# Development overrides - builds locally instead of using registry
whoosh-backend:
build:
context: ./modules/whoosh/backend
dockerfile: Dockerfile
volumes:
- ./modules/whoosh/backend:/app
- ./modules/whoosh/config:/app/config
environment:
- ENVIRONMENT=development
- LOG_LEVEL=debug
whoosh-frontend:
build:
context: ./modules/whoosh/frontend
dockerfile: Dockerfile
volumes:
- ./modules/whoosh/frontend:/app
- /app/node_modules
bzzz-coordinator:
build:
context: ./modules/bzzz
dockerfile: Dockerfile
volumes:
- ./modules/bzzz/config:/app/config
- ./modules/bzzz/data:/app/data
environment:
- BZZZ_NODE_ENV=development
- BZZZ_LOG_LEVEL=debug
slurp-api:
build:
context: ./modules/slurp/hcfs-python
dockerfile: Dockerfile
volumes:
- ./modules/slurp/data:/app/data
- ./modules/slurp/config:/app/config
environment:
- HCFS_LOG_LEVEL=debug
slurp-rl-tuner:
build:
context: ./modules/slurp
dockerfile: Dockerfile.rl-tuner
environment:
- LOG_LEVEL=debug

View File

@@ -0,0 +1,298 @@
# Docker Compose for Docker Swarm Deployment
# Optimized for production deployment on deepblack.cloud infrastructure
version: '3.8'
services:
# WHOOSH - Orchestration Platform
whoosh-backend:
image: registry.home.deepblack.cloud/tony/chorus-whoosh-backend:latest
deploy:
replicas: 2
placement:
constraints:
- node.role == manager
resources:
limits:
memory: 1G
reservations:
memory: 512M
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-api.rule=Host(`api.chorus.services`)"
- "traefik.http.routers.chorus-api.entrypoints=web-secured"
- "traefik.http.routers.chorus-api.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-api.loadbalancer.server.port=8000"
- "traefik.http.services.chorus-api.loadbalancer.passhostheader=true"
environment:
- DATABASE_URL=postgresql://chorus:choruspass@postgres:5432/chorus_whoosh
- REDIS_URL=redis://redis:6379
- CORS_ORIGINS=https://dashboard.chorus.services,https://www.chorus.services
- ENVIRONMENT=production
- LOG_LEVEL=info
networks:
- tengig
- chorus_network
depends_on:
- postgres
- redis
whoosh-frontend:
image: registry.home.deepblack.cloud/tony/chorus-whoosh-frontend:latest
deploy:
replicas: 2
placement:
constraints:
- node.role == manager
resources:
limits:
memory: 512M
reservations:
memory: 256M
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-dashboard.rule=Host(`dashboard.chorus.services`)"
- "traefik.http.routers.chorus-dashboard.entrypoints=web-secured"
- "traefik.http.routers.chorus-dashboard.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-dashboard.loadbalancer.server.port=3000"
- "traefik.http.services.chorus-dashboard.loadbalancer.passhostheader=true"
environment:
- REACT_APP_API_URL=https://api.chorus.services
- REACT_APP_WS_URL=wss://api.chorus.services
networks:
- tengig
- chorus_network
depends_on:
- whoosh-backend
# Marketing Website
chorus-website:
image: registry.home.deepblack.cloud/tony/chorus-website:latest
deploy:
replicas: 2
placement:
constraints:
- node.role == manager
resources:
limits:
memory: 128M
reservations:
memory: 64M
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-website.rule=Host(`www.chorus.services`) || Host(`chorus.services`)"
- "traefik.http.routers.chorus-website.entrypoints=web-secured"
- "traefik.http.routers.chorus-website.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-website.loadbalancer.server.port=80"
- "traefik.http.services.chorus-website.loadbalancer.passhostheader=true"
# Redirect naked domain to www
- "traefik.http.middlewares.chorus-redirect.redirectregex.regex=^https://chorus.services/(.*)"
- "traefik.http.middlewares.chorus-redirect.redirectregex.replacement=https://www.chorus.services/$${1}"
- "traefik.http.routers.chorus-website.middlewares=chorus-redirect"
networks:
- tengig
# BZZZ - P2P Agent Coordination
bzzz-coordinator:
image: registry.home.deepblack.cloud/tony/chorus-bzzz-coordinator:latest
deploy:
replicas: 1
placement:
constraints:
- node.role == manager # P2P networking works better on manager
resources:
limits:
memory: 512M
reservations:
memory: 256M
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-bzzz.rule=Host(`chorus-bzzz.home.deepblack.cloud`)"
- "traefik.http.routers.chorus-bzzz.entrypoints=web-secured"
- "traefik.http.routers.chorus-bzzz.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-bzzz.loadbalancer.server.port=8080"
ports:
- target: 4001
published: 4001
protocol: tcp
mode: host # Required for P2P networking
environment:
- BZZZ_NODE_ENV=production
- BZZZ_LOG_LEVEL=info
networks:
- tengig
- chorus_network
volumes:
- bzzz_data:/app/data
# SLURP - Context Curator Service
slurp-curator:
image: registry.home.deepblack.cloud/tony/chorus-slurp-curator:latest
deploy:
replicas: 2
placement:
constraints:
- node.role == manager
resources:
limits:
memory: 1G
reservations:
memory: 512M
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-slurp.rule=Host(`slurp.chorus.services`)"
- "traefik.http.routers.chorus-slurp.entrypoints=web-secured"
- "traefik.http.routers.chorus-slurp.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-slurp.loadbalancer.server.port=8000"
environment:
- SLURP_DATABASE_URL=postgresql://chorus:choruspass@postgres:5432/chorus_slurp
- SLURP_LOG_LEVEL=info
- SLURP_AUTH_ENABLED=true
- HYPERCORE_LOG_URL=http://hypercore-log:8000
- BZZZ_COORDINATOR_URL=http://bzzz-coordinator:8080
networks:
- tengig
- chorus_network
volumes:
- slurp_data:/app/data
depends_on:
- postgres
- bzzz-coordinator
# COOEE - RL Context Tuner
slurp-rl-tuner:
image: registry.home.deepblack.cloud/tony/chorus-slurp-rl-tuner:latest
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
memory: 512M
reservations:
memory: 256M
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-cooee.rule=Host(`chorus-cooee.home.deepblack.cloud`)"
- "traefik.http.routers.chorus-cooee.entrypoints=web-secured"
- "traefik.http.routers.chorus-cooee.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-cooee.loadbalancer.server.port=8000"
environment:
- RL_TUNER_DATABASE_URL=postgresql://chorus:choruspass@postgres:5432/chorus_rl_tuner
- SLURP_CURATOR_URL=http://slurp-curator:8000
- BZZZ_API_URL=http://bzzz-coordinator:8080
networks:
- tengig
- chorus_network
depends_on:
- postgres
- slurp-curator
- bzzz-coordinator
# Shared Infrastructure
postgres:
image: postgres:15
deploy:
replicas: 1
placement:
constraints:
- node.role == manager # Keep database on manager for stability
resources:
limits:
memory: 2G
reservations:
memory: 1G
environment:
- POSTGRES_DB=chorus
- POSTGRES_USER=chorus
- POSTGRES_PASSWORD=choruspass
networks:
- chorus_network
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
redis:
image: redis:7-alpine
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
memory: 256M
reservations:
memory: 128M
networks:
- chorus_network
volumes:
- redis_data:/data
# Monitoring Stack
prometheus:
image: prom/prometheus:latest
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-prometheus.rule=Host(`chorus-prometheus.home.deepblack.cloud`)"
- "traefik.http.routers.chorus-prometheus.entrypoints=web-secured"
- "traefik.http.routers.chorus-prometheus.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-prometheus.loadbalancer.server.port=9090"
networks:
- tengig
- chorus_network
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
grafana:
image: grafana/grafana:latest
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-grafana.rule=Host(`chorus-grafana.home.deepblack.cloud`)"
- "traefik.http.routers.chorus-grafana.entrypoints=web-secured"
- "traefik.http.routers.chorus-grafana.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-grafana.loadbalancer.server.port=3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=chorusadmin
networks:
- tengig
- chorus_network
volumes:
- grafana_data:/var/lib/grafana
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources
volumes:
postgres_data:
redis_data:
prometheus_data:
grafana_data:
bzzz_data:
slurp_data:
networks:
tengig:
external: true
chorus_network:
driver: overlay
attachable: true

View File

@@ -0,0 +1,43 @@
# Database Setup for CHORUS Teaser Website
version: '3.8'
services:
teaser-postgres:
image: postgres:15-alpine
deploy:
replicas: 1
placement:
constraints:
- node.hostname == walnut
resources:
limits:
memory: 256M
reservations:
memory: 128M
environment:
- POSTGRES_DB=chorus_website
- POSTGRES_USER=chorus
- POSTGRES_PASSWORD=choruspass
volumes:
- teaser_postgres_data:/var/lib/postgresql/data
- /home/tony/chorus/project-queues/active/chorus.services/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql:ro
- /home/tony/chorus/project-queues/active/chorus.services/modules/teaser/database/01-schema.sql:/docker-entrypoint-initdb.d/02-teaser-schema.sql:ro
- /home/tony/chorus/project-queues/active/chorus.services/modules/teaser/database/02-add_teaser_lead_sources.sql:/docker-entrypoint-initdb.d/03-teaser-lead-sources.sql:ro
networks:
- chorus_website_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chorus -d chorus_website"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
volumes:
teaser_postgres_data:
driver: local
networks:
chorus_website_network:
driver: overlay
attachable: true

View File

@@ -0,0 +1,93 @@
# Docker Compose for CHORUS Teaser Website
# Complete deployment with database and website in single stack
version: '3.8'
services:
# PostgreSQL Database
teaser-postgres:
image: postgres:15-alpine
deploy:
replicas: 1
placement:
constraints:
- node.hostname == walnut
resources:
limits:
memory: 256M
reservations:
memory: 128M
environment:
- POSTGRES_DB=chorus_website
- POSTGRES_USER=chorus
- POSTGRES_PASSWORD=choruspass
volumes:
- teaser_postgres_data:/var/lib/postgresql/data
- /home/tony/chorus/project-queues/active/chorus.services/init-db.sql:/docker-entrypoint-initdb.d/01-init-db.sql:ro
- /home/tony/chorus/project-queues/active/chorus.services/modules/teaser/database/01-schema.sql:/docker-entrypoint-initdb.d/02-teaser-schema.sql:ro
- /home/tony/chorus/project-queues/active/chorus.services/modules/teaser/database/02-add_teaser_lead_sources.sql:/docker-entrypoint-initdb.d/03-teaser-lead-sources.sql:ro
networks:
- chorus_website_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chorus -d chorus_website"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
# CHORUS Teaser Website
chorus-website:
image: registry.home.deepblack.cloud/teaser-website:latest
deploy:
replicas: 2
placement:
constraints:
- node.hostname == walnut
resources:
limits:
memory: 256M
reservations:
memory: 128M
labels:
- "traefik.enable=true"
- "traefik.docker.network=tengig"
- "traefik.http.routers.chorus-website.rule=Host(`www.chorus.services`) || Host(`chorus.services`)"
- "traefik.http.routers.chorus-website.entrypoints=web-secured"
- "traefik.http.routers.chorus-website.tls.certresolver=letsencryptresolver"
- "traefik.http.services.chorus-website.loadbalancer.server.port=3000"
- "traefik.http.services.chorus-website.loadbalancer.passhostheader=true"
# Redirect naked domain to www
- "traefik.http.middlewares.chorus-redirect.redirectregex.regex=^https://chorus.services/(.*)"
- "traefik.http.middlewares.chorus-redirect.redirectregex.replacement=https://www.chorus.services/$${1}"
- "traefik.http.routers.chorus-website.middlewares=chorus-redirect"
environment:
- DATABASE_URL=postgresql://chorus:choruspass@teaser-postgres:5432/chorus_website
- NODE_ENV=production
- NEXT_TELEMETRY_DISABLED=1
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SMTP_SECURE=false
- NOTIFICATION_FROM_EMAIL=noreply@chorus.services
- NOTIFICATION_TO_EMAIL=anthony.lewis.rawlins@gmail.com
- LEAD_API_KEY=prod-api-key-chorus-teaser
ports:
- target: 3000
published: 3100
protocol: tcp
mode: ingress
networks:
- tengig
- chorus_website_network
depends_on:
- teaser-postgres
volumes:
teaser_postgres_data:
driver: local
networks:
tengig:
external: true
chorus_website_network:
driver: overlay
attachable: true

175
docker/docker-compose.yml Normal file
View File

@@ -0,0 +1,175 @@
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
volumes:
- ./modules/bzzz/config:/app/config
- ./modules/bzzz/data:/app/data
# SLURP - Context Curator Service
slurp-curator:
image: registry.home.deepblack.cloud/tony/chorus-slurp-curator:latest
container_name: chorus_slurp_curator
ports:
- "8088:8000"
environment:
- SLURP_DATABASE_URL=postgresql://chorus:choruspass@postgres:5432/chorus_slurp
- SLURP_LOG_LEVEL=info
- SLURP_AUTH_ENABLED=true
- HYPERCORE_LOG_URL=http://hypercore-log:8000
- BZZZ_COORDINATOR_URL=http://bzzz-coordinator:8080
networks:
- chorus_network
volumes:
- slurp_data:/app/data
- ./modules/slurp/config:/app/config
depends_on:
- postgres
- bzzz-coordinator
# COOEE - RL Feedback System (part of SLURP)
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
- SLURP_CURATOR_URL=http://slurp-curator:8000
- BZZZ_API_URL=http://bzzz-coordinator:8080
depends_on:
- postgres
- slurp-curator
- bzzz-coordinator
networks:
- chorus_network
# CHORUS Website
chorus-website:
image: registry.home.deepblack.cloud/tony/chorus-website:latest
container_name: chorus_website
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=postgresql://chorus:choruspass@postgres:5432/chorus_website
- NEXT_TELEMETRY_DISABLED=1
depends_on:
- postgres
networks:
- chorus_network
volumes:
- ./modules/website/config:/app/config
profiles:
- website # Only start with: docker-compose --profile website up
# 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:
slurp_data:
networks:
chorus_network:
driver: bridge
ipam:
config:
- subnet: 192.168.100.0/24

53
docker/domain_info.yaml Normal file
View File

@@ -0,0 +1,53 @@
domain: chorus.services
records:
- name: qe8ddd03c96afc707._domainkey.chorus.services
type: TXT
ttl: 3600
content: '"v=DKIM1; k=rsa; h=sha256; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArPS8sm8Y3VGybA1x2y+YBb0DTwiyzMNEy5wB2oxM5BBywohhp9LJGfqCOsjQQR/mqBZc1cyUM10rYZgCZqzbIQpvcnsUsd20KWyxLWdgbMGIirmcwlJAtYr6Rajj1bI0nSQHb6319ZgDuV4jfQNEYaSATooBCponFv6jVzetj0d4c9NN/b0IsfKH4bYvnldtUF2EyZWpfT8srD2wbEqbDKNsu3Rbcdg+dTM5TIRRC+FeOU16SdGZGb8epjsT6yytHeBaZrsDikeKy6TdTAkZf8WGonffWz2/V6Uw2zL3xKtOfkzInyZvgMx3qylz4a3ceNb2BfVmlvSEPjZLU3cB+wIDAQAB"'
- name: autodiscover.chorus.services
type: CNAME
ttl: 3600
content: mail.chorus.services.
- name: _autodiscover._tcp.chorus.services
type: SRV
ttl: 3600
content: 10 10 443 mail.chorus.services.
- name: webmail.chorus.services
type: CNAME
ttl: 3600
content: mail.chorus.services.
- name: mail.chorus.services
type: CNAME
ttl: 3600
content: mx3594.syd1.mymailhosting.com.
- name: api.chorus.services
type: A
ttl: 900
content: 202.171.184.242
- name: _dmarc.chorus.services
type: TXT
ttl: 3600
content: '"v=DMARC1;p=none;adkim=s;aspf=s;"'
- name: '*.chorus.services'
type: A
ttl: 900
content: 202.171.184.242
- name: chorus.services
type: TXT
ttl: 3600
content: '"v=spf1 a mx include:spf.mymailhosting.com -all"'
- name: chorus.services
type: MX
ttl: 3600
content: 10 mx3594.syd1.mymailhosting.com.
- name: chorus.services
type: NS
ttl: 3600
content:
- ns1.netregistry.net.
- ns2.netregistry.net.
- ns3.netregistry.net.
- name: chorus.services
type: A
ttl: 3600
content: 202.171.184.242