# Ideas Generator 2025 - Docker Deployment Complete Docker deployment for Ideas Generator 2025 with automatic database initialization. ## Quick Start 1. **Clone the repository:** ```bash git clone git@bitbucket.org:zlalani/ideas-generator.git cd ideas-generator git checkout docker-deployment cd docker ``` 2. **Run the simple setup:** ```bash chmod +x simple-setup.sh ./simple-setup.sh ``` 3. **Access your application:** - URL: http://localhost:8083 - Admin Login: admin@oliver.agency / admin123 ## 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:** ```bash docker compose down --volumes docker system prune -f ./simple-setup.sh ``` ## Management Commands ```bash # 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