ideas-generator/docker
DJP 73fc91f138 Fix Docker deployment and chat functionality
- Add volume cleanup to simple-setup.sh to prevent database password issues
- Fix chat API sendStreamingMessage to include Authorization header and userId
- Ensure fresh database initialization on every deployment
- Chat should now work properly with authentication

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 16:15:41 -04:00
..
nginx 🐳 Complete Docker deployment system with interactive setup 2025-09-09 18:00:29 -04:00
postgres 🐳 Complete Docker deployment system with interactive setup 2025-09-09 18:00:29 -04:00
scripts Complete Docker deployment improvements for plug-and-play setup 2025-09-10 15:48:46 -04:00
.env.example 🐳 Complete Docker deployment system with interactive setup 2025-09-09 18:00:29 -04:00
docker-compose.yml 🐳 Complete Docker deployment system with interactive setup 2025-09-09 18:00:29 -04:00
Dockerfile.backend 🐳 Complete Docker deployment system with interactive setup 2025-09-09 18:00:29 -04:00
Dockerfile.frontend 🐳 Complete Docker deployment system with interactive setup 2025-09-09 18:00:29 -04:00
quick-setup.sh 🔧 Fix line endings in quick-setup.sh script 2025-09-09 18:37:17 -04:00
README.md Complete Docker deployment improvements for plug-and-play setup 2025-09-10 15:48:46 -04:00
setup.sh 🚀 Add quick-setup.sh script with better input handling 2025-09-09 18:34:52 -04:00
simple-setup.sh Fix Docker deployment and chat functionality 2025-09-10 16:15:41 -04:00

Ideas Generator 2025 - Docker Deployment

Complete Docker deployment for Ideas Generator 2025 with automatic database initialization.

Quick Start

  1. Clone the repository:

    git clone git@bitbucket.org:zlalani/ideas-generator.git
    cd ideas-generator
    git checkout docker-deployment
    cd docker
    
  2. Run the simple setup:

    chmod +x simple-setup.sh
    ./simple-setup.sh
    
  3. Access your application:

What Gets Set Up

  • PostgreSQL database with automatic initialization
  • Node.js backend API with authentication
  • Vue.js frontend with modern UI
  • Nginx reverse proxy
  • Admin user created automatically
  • All AI agents seeded and ready to use

Admin Features

Login as admin@oliver.agency to:

  • Manage users and access controls
  • Configure AI agents and assistants
  • View analytics and system health
  • Toggle password authentication on/off
  • Assign agents to users manually

Requirements

  • Docker and Docker Compose installed
  • OpenAI API key (you'll be prompted during setup)
  • Ports 8083 available (or customize in setup)

Customization

The setup script will ask for:

  • Domain name (default: localhost)
  • HTTP port (default: 8083)
  • OpenAI API key (required)

Advanced configuration can be done by editing the generated .env file.

Architecture

Frontend (Vue.js + Nginx) 
    ↓ 
Backend (Node.js + Express)
    ↓ 
Database (PostgreSQL)

Troubleshooting

Port conflicts: Change the HTTP_PORT in .env file Database issues: Check docker compose logs database Backend errors: Check docker compose logs backend Frontend issues: Check docker compose logs frontend

Reset everything:

docker compose down --volumes
docker system prune -f
./simple-setup.sh

Management Commands

# View status
docker compose ps

# View logs
docker compose logs -f

# Stop services
docker compose down

# Restart services  
docker compose restart

# Update and rebuild
git pull origin docker-deployment
docker compose up -d --build

Production Deployment

For production deployment:

  1. Use a proper domain name
  2. Set up SSL certificates in /certs directory
  3. Change default admin password
  4. Configure proper CORS settings
  5. Set up backup procedures for PostgreSQL data EOF < /dev/null