ideas-generator/docker/README.md
DJP d4f4e8a798 Complete Docker deployment improvements for plug-and-play setup
- Remove problematic .env files that override Docker environment variables
- Add automatic database initialization script (init-database.js)
- Create admin@oliver.agency user automatically with admin123 password
- Auto-run database migrations and seeding on first startup
- Update setup scripts to display admin credentials
- Add comprehensive Docker deployment README
- Make deployment truly plug-and-play: git clone → cd docker → ./simple-setup.sh

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 15:48:46 -04:00

2.4 KiB

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