✅ Production-Ready Containerization: - Multi-stage frontend build (Vue.js + Nginx) - Optimized backend container (Node.js + Alpine) - PostgreSQL 15 with persistent storage and health checks - Custom Docker network for secure service communication ✅ Interactive Setup Wizard (setup.sh): - Beautiful CLI interface with colors and progress indicators - Automatic secure password and JWT secret generation - Complete environment configuration with validation - Domain, SSL, Azure AD, and OpenAI API setup - One-command deployment with immediate startup option ✅ Production Security & Performance: - Nginx reverse proxy with rate limiting and security headers - HTTPS/SSL support with custom certificate mounting - CORS protection and request validation - Non-root container execution for all services - Health checks and monitoring for reliability ✅ Management & Operations: - Comprehensive deploy.sh script with all common operations - Database backup and restore capabilities - Service logs management and troubleshooting tools - Docker Compose orchestration with dependency management - Development vs production environment support ✅ Enterprise Features: - Azure AD SSO integration with hybrid authentication - OpenAI API configuration and secure key management - Multi-environment support (localhost vs production) - Comprehensive documentation and troubleshooting guides - Resource optimization and performance tuning 🏗️ Architecture: - Frontend: Vue.js + Vite → Nginx (port 80/443) - Backend: Node.js + Express (internal port 3000) - Database: PostgreSQL 15 (internal port 5432) - Networking: Isolated Docker bridge network - Storage: Named volumes for data persistence 🚀 Deployment Commands: - ./setup.sh - Interactive deployment wizard - ./scripts/deploy.sh [start|stop|build|logs|status] - docker-compose up -d --build - Automatic migrations and admin user creation 🔒 Security Hardening: - Rate limiting on API endpoints (10 req/s) and auth (5 req/min) - Security headers (X-Frame-Options, CSP, HSTS) - CORS validation and origin checking - SSL/TLS encryption support - Container isolation and minimal attack surface 📚 Complete Documentation: - Comprehensive README with architecture overview - Troubleshooting guide with common issues - Development vs production configuration - Performance tuning and scaling recommendations 🎯 One-Command Production Deployment: Everything needed to deploy Ideas Generator 2025 in production with enterprise security, monitoring, and Azure AD SSO integration. 🚀 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
No EOL
1 KiB
Text
34 lines
No EOL
1 KiB
Text
# Ideas Generator 2025 - Docker Environment Configuration Example
|
|
# Copy this file to .env and fill in your actual values
|
|
|
|
# Basic Configuration
|
|
DOMAIN_NAME=localhost
|
|
HTTP_PORT=80
|
|
HTTPS_PORT=443
|
|
|
|
# Database Configuration
|
|
DATABASE_NAME=ideas_gen_prod
|
|
DATABASE_USER=ideas_admin
|
|
DATABASE_PASSWORD=your-secure-database-password-here
|
|
|
|
# Security Configuration (use the setup script to generate secure values)
|
|
JWT_SECRET=your-jwt-secret-here-should-be-64-chars-or-more
|
|
|
|
# Azure AD Configuration (Oliver Agency defaults)
|
|
AZURE_TENANT_ID=e519c2e6-bc6d-4fdf-8d9c-923c2f002385
|
|
AZURE_CLIENT_ID=9079054c-9620-4757-a256-23413042f1ef
|
|
|
|
# OpenAI Configuration
|
|
OPENAI_API_KEY=your-openai-api-key-here
|
|
|
|
# URL Configuration (automatically set based on domain)
|
|
FRONTEND_URL=http://localhost
|
|
BACKEND_URL=http://localhost/api
|
|
CORS_ORIGIN=http://localhost,https://localhost
|
|
|
|
# SSL Configuration (for production deployments)
|
|
SSL_CERT_PATH=./certs
|
|
|
|
# Additional Configuration Options
|
|
# NODE_ENV=production
|
|
# POSTGRES_HOST_AUTH_METHOD=scram-sha-256 |