{"id":29723408,"url":"https://github.com/evanlei-git/ansible-boostflow","last_synced_at":"2026-02-07T11:32:32.432Z","repository":{"id":301967650,"uuid":"987239483","full_name":"EvanLei-git/ansible-boostflow","owner":"EvanLei-git","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-27T22:15:44.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-28T10:58:12.970Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvanLei-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-20T19:28:45.000Z","updated_at":"2026-01-27T22:15:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0176c42-697e-4e65-933e-a7f4ae9908a4","html_url":"https://github.com/EvanLei-git/ansible-boostflow","commit_stats":null,"previous_names":["evanlei-git/ansible-boostflow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EvanLei-git/ansible-boostflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanLei-git%2Fansible-boostflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanLei-git%2Fansible-boostflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanLei-git%2Fansible-boostflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanLei-git%2Fansible-boostflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvanLei-git","download_url":"https://codeload.github.com/EvanLei-git/ansible-boostflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanLei-git%2Fansible-boostflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-24T18:32:20.247Z","updated_at":"2026-02-07T11:32:32.427Z","avatar_url":"https://github.com/EvanLei-git.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# BoostFlow Deployment\n\nA comprehensive deployment solution for BoostFlow using Ansible and Docker.\n\n## Project Structure\n\n```\nansible-boostflow/\n├── README.md                    # This file\n├── DEPLOYMENT_NOTES.md          # Deployment configuration notes\n├── .env.local                   # Environment variables (not in repo)\n├── .gitignore                   # Git ignore rules\n├── .dockerignore               # Docker ignore rules\n├── ansible/                     # Ansible configuration\n│   ├── README.md               # Ansible documentation\n│   ├── ansible.cfg             # Ansible configuration\n│   ├── inventories/            # Inventory files\n│   │   ├── hosts.yaml          # Host definitions\n│   │   ├── group_vars/         # Group variables\n│   │   │   ├── all.yaml        # Global variables\n│   │   │   └── azure_hosts.yaml # Azure-specific variables\n│   │   └── host_vars/          # Host-specific variables\n│   │       └── devops-vm.yaml  # VM-specific variables\n│   ├── playbooks/              # Ansible playbooks\n│   │   ├── site.yaml           # Main playbook\n│   │   ├── deploy_docker.yaml  # Docker deployment\n│   │   ├── docker.yaml         # Docker installation\n│   │   ├── install_kubernetes.yaml # Kubernetes setup\n│   │   ├── install_nginx.yaml  # Nginx installation\n│   │   ├── nextjs.yaml         # Next.js deployment\n│   │   └── nodejs.yaml         # Node.js setup\n│   └── templates/              # Jinja2 templates\n│       ├── nextjs.service.j2   # Systemd service template\n│       ├── nginx.https.j2      # HTTPS Nginx config\n│       ├── nginx.nextjs.j2     # Next.js Nginx config\n│       └── nginx.react.j2      # React Nginx config\n└── docker/                     # Docker configuration\n    ├── README.md               # Docker documentation\n    ├── Dockerfile              # Multi-stage build\n    ├── docker-compose.yaml     # Docker Compose config\n    ├── nginx/                  # Nginx configuration\n    │   ├── nginx.conf          # Main Nginx config\n    │   └── default.conf        # Server block config\n    └── scripts/                # Container scripts\n        └── start.sh            # Startup script\n```\n\n## Quick Start\n\n### Prerequisites\n\n1. **Ansible** installed on your local machine\n2. **Docker** and **Docker Compose** on target servers\n3. **SSH access** to target servers\n4. **SSH key** for GitHub access\n5. **`.env.local`** file with your environment variables\n\n### Environment Setup\n\n1. Clone this repository:\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd ansible-boostflow\n   ```\n\n2. Create your `.env.local` file:\n   ```bash\n   cp .env.example .env.local\n   # Edit .env.local with your actual values\n   ```\n\n3. Configure your inventory:\n   ```bash\n   # Edit ansible/inventories/hosts.yaml\n   # Update IP addresses, SSH keys, etc.\n   ```\n\n### Deployment Options\n\n#### Option 1: Docker Deployment (Recommended)\n\nDeploys BoostFlow using Docker containers with combined Nginx + Next.js container and separate MinIO container.\n\n```bash\ncd ansible\nansible-playbook -i inventories/hosts.yaml playbooks/deploy_docker.yaml\n```\n\n**Features:**\n- Combined Nginx + Next.js container for efficiency\n- Separate MinIO container for object storage\n- Health checks and monitoring\n- Automatic SSL support (when configured)\n- Easy scaling and management\n\n#### Option 2: Traditional Deployment\n\nInstalls services directly on the host system.\n\n```bash\ncd ansible\nansible-playbook -i inventories/hosts.yaml playbooks/site.yaml\n```\n\n**Features:**\n- Direct installation on host\n- Systemd service management\n- Traditional Nginx configuration\n- Full system integration\n\n#### Option 3: Kubernetes Deployment\n\nSets up Kubernetes cluster and deploys BoostFlow.\n\n```bash\ncd ansible\nansible-playbook -i inventories/hosts.yaml playbooks/install_kubernetes.yaml\n# Then use the kubernetes-boostflow project for deployment\n```\n\n## Configuration\n\n### Global Variables\n\nEdit `ansible/inventories/group_vars/all.yaml`:\n\n```yaml\napp_name: \"Boostflow\"\napp_repo: \"git@github.com:Kdim67/BoostFlow.git\"\napp_port: 3000\nbranch: \"main\"\nssl_enabled: false  # Set to true for HTTPS\n```\n\n### Host-Specific Variables\n\nEdit `ansible/inventories/host_vars/devops-vm.yaml`:\n\n```yaml\nssl_enabled: true  # Override global setting\n```\n\n### Environment Variables\n\nCreate `.env.local` with your configuration:\n\n```env\n# Database\nDATABASE_URL=your_database_url\n\n# Authentication\nNEXTAUTH_SECRET=your_secret\nNEXTAUTH_URL=http://localhost:3000\n\n# MinIO\nMINIO_ACCESS_KEY=your_access_key\nMINIO_SECRET_KEY=your_secret_key\n\n# Other services\nGOOGLE_MAPS_API_KEY=your_api_key\n```\n\n## Docker Architecture\n\nThe new Docker setup uses a two-container architecture:\n\n### App Container (boostflow-app)\n- **Base**: nginx:alpine with Node.js installed\n- **Services**: Nginx (port 80/443) + Next.js (port 3000)\n- **Features**: Reverse proxy, static file serving, health checks\n- **Startup**: Custom script manages both services\n\n### MinIO Container (boostflow-minio)\n- **Base**: minio/minio:latest\n- **Services**: MinIO server (port 9000) + Console (port 9001)\n- **Features**: S3-compatible storage, web console\n- **Storage**: Persistent Docker volume\n\n## Monitoring and Maintenance\n\n### Health Checks\n\n```bash\n# Check application health\ncurl http://your-server/health\n\n# Check MinIO health\ncurl http://your-server:9000/minio/health/live\n\n# View container status\ndocker-compose -f docker/docker-compose.yaml ps\n```\n\n### Logs\n\n```bash\n# View all logs\ndocker-compose -f docker/docker-compose.yaml logs -f\n\n# View specific service logs\ndocker-compose -f docker/docker-compose.yaml logs -f app\ndocker-compose -f docker/docker-compose.yaml logs -f minio\n```\n\n### Updates\n\n```bash\n# Update application\ncd ansible\nansible-playbook -i inventories/hosts.yaml playbooks/deploy_docker.yaml\n\n# Or manually\ndocker-compose -f docker/docker-compose.yaml pull\ndocker-compose -f docker/docker-compose.yaml up -d\n```\n\n## Security Considerations\n\n1. **Environment Variables**: Never commit `.env.local` to version control\n2. **SSH Keys**: Use dedicated SSH keys for deployment\n3. **SSL/TLS**: Enable SSL for production deployments\n4. **Firewall**: Configure appropriate firewall rules\n5. **Updates**: Keep Docker images and system packages updated\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Port Conflicts**: Ensure ports 80, 443, 9000, 9001 are available\n2. **Permission Issues**: Check file permissions and ownership\n3. **Network Issues**: Verify Docker network configuration\n4. **SSL Issues**: Check certificate validity and configuration\n\n### Debug Commands\n\n```bash\n# Check Ansible connectivity\nansible -i ansible/inventories/hosts.yaml all -m ping\n\n# Test Docker Compose configuration\ndocker-compose -f docker/docker-compose.yaml config\n\n# Access container shell\ndocker exec -it boostflow-app sh\n\n# View Nginx configuration\ndocker exec boostflow-app nginx -t\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Test thoroughly\n5. Submit a pull request\n\n## Support\n\nFor issues and questions:\n1. Check the troubleshooting section\n2. Review logs for error messages\n3. Open an issue on GitHub\n4. Contact the development team\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanlei-git%2Fansible-boostflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanlei-git%2Fansible-boostflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanlei-git%2Fansible-boostflow/lists"}