- 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>
93 lines
3.1 KiB
YAML
93 lines
3.1 KiB
YAML
# 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 |