Baota Panel Deployment
Deploy CoAI.Dev using Baota Panel with one-click installation from the app store
Baota Panel Deployment
Baota Panel (宝塔面板) is a popular Chinese server management panel that provides a graphical interface for server administration. CoAI.Dev offers one-click deployment through Baota Panel's app store, making it easy for Chinese users to deploy and manage their instances.
Requirements
This deployment method requires Baota Panel version 9.2.0 or higher with Docker support.
Overview
Deployment Benefits:
- 🎯 One-Click Installation: Install directly from Baota Panel app store
- 🖥️ GUI Management: Visual interface for all configurations
- 🔧 Integrated Tools: Built-in monitoring, logs, and SSL management
- 🇨🇳 Chinese-Friendly: Native Chinese language support
- 📊 Unified Dashboard: Manage CoAI.Dev alongside other applications
Best For:
- Chinese users familiar with Baota Panel
- Existing Baota Panel infrastructure
- Users preferring GUI over command line
- Small to medium deployments
Prerequisites
System Requirements
Minimum Server Specifications:
- CPU: 2 cores
- RAM: 4GB
- Storage: 10GB available space
- OS: Linux (CentOS 7+, Ubuntu 18.04+, Debian 9+)
Network Requirements:
- Bandwidth: 10Mbps+ recommended
- Ports: 80, 443, and custom app ports
- Domain: Optional but recommended for production
Install Baota Panel
Download and Install Baota Panel
Install Baota Panel on your server:
For CentOS/RHEL:
For Ubuntu/Debian:
For Debian:
Access Baota Panel
After installation:
- Note the Panel URL: Displayed at the end of installation
- Access Panel: Open the URL in your browser
- Login: Use the provided username and password
- Update Panel: Follow prompts to update to latest version
Install Docker Support
Install Docker Management:
- Go to Software Store → System Tools
- Find and install Docker Manager
- Wait for Docker and Docker Compose installation
- Verify installation in Docker menu
One-Click Deployment
Install CoAI.Dev
Access App Store
Navigate to CoAI.Dev in the app store:
- Login to Baota Panel
- Go to App Store: Click Software Store in left menu
- Search for CoAI: Use search bar to find "CoAI"
- Select CoAI.Dev: Click on the CoAI.Dev application
Configure Deployment
Basic Configuration:
Configure the following settings:
Application Settings:
- Application Name:
chatnio
(or custom name) - Domain: Your domain name (optional)
- Port:
8000
(default) or custom port - Version: Latest stable version
Advanced Settings (Optional):
- Memory Limit: Adjust based on server capacity
- CPU Limit: Set CPU usage limits
- Environment Variables: Custom configurations
- Volume Mounts: Custom data persistence paths
Example Configuration:
Deploy Application
Start Deployment:
- Review Settings: Verify all configuration options
- Click Install: Start the deployment process
- Wait for Initialization: First deployment may take 1-2 minutes
- Monitor Logs: Check deployment logs for any issues
Deployment Process:
- Downloads CoAI.Dev Docker images
- Sets up MySQL and Redis databases
- Configures network and storage
- Initializes application with default settings
Verify Installation
Check Application Status:
- Access Application: Go to your configured domain or
http://[server-ip]:[port]
- Login: Use default credentials:
- Username:
root
- Password:
chatnio123456
- Username:
- Change Password: Immediately update the default password
- Test Functionality: Verify basic features work correctly
Management and Monitoring
Application Management
Using Baota Panel:
Start/Stop/Restart:
- Go to Docker → Containers
- Find your CoAI.Dev containers
- Use control buttons for management
View Logs:
- Click on container name
- Select Logs tab
- Monitor real-time application logs
Resource Monitoring:
- Go to Monitoring section
- View CPU, memory, and network usage
- Set up alerts for resource thresholds
Configuration Management
Environment Variables:
Volume Management:
- Database:
~/db
- MySQL data persistence - Redis:
~/redis
- Redis data persistence - Config:
~/config
- Application configuration files - Logs:
~/logs
- Application logs - Storage:
~/storage
- File uploads and generated content
SSL Certificate Setup
Using Baota Panel SSL:
Configure Domain
- Add Site: Go to Websites → Add Site
- Enter Domain: Add your domain name
- Set Document Root: Point to CoAI.Dev installation
- Create Site: Confirm site creation
Install SSL Certificate
Using Let's Encrypt (Free):
- Go to SSL Settings: Click SSL tab in site settings
- Select Let's Encrypt: Choose free certificate option
- Verify Domain: Ensure domain points to your server
- Install Certificate: Click apply to install SSL
Using Custom Certificate:
- Upload Certificate: Add your SSL certificate files
- Configure Private Key: Add corresponding private key
- Apply Settings: Save and apply SSL configuration
Configure HTTPS Redirect
Enable Force HTTPS:
- Site Settings: Go to your site configuration
- SSL Settings: Find redirect options
- Enable Redirect: Force HTTP to HTTPS
- Test Access: Verify HTTPS works correctly
Updates and Maintenance
Updating CoAI.Dev
Using Baota Panel:
- Check for Updates: Go to Docker → Images
- Pull Latest Image: Update to newest version
- Recreate Container: Deploy with new image
- Verify Update: Test functionality after update
Manual Update Process:
Backup and Recovery
Database Backup:
- Go to Databases: Access MySQL management
- Select CoAI.Dev DB: Choose your database
- Export Backup: Create backup file
- Store Safely: Keep backups in secure location
Full System Backup:
- Backup Volumes: Copy data directories
- Export Configuration: Save Docker compose files
- Document Settings: Record custom configurations
Troubleshooting
Common Issues:
Application Won't Start:
- Check Baota Panel Docker service status
- Verify port availability (not used by other services)
- Check system resources (RAM, disk space)
- Review application logs in Docker management
Database Connection Issues:
- Verify MySQL service is running
- Check database credentials in environment variables
- Ensure network connectivity between containers
Performance Issues:
- Monitor resource usage in Baota Panel
- Adjust container resource limits
- Consider upgrading server specifications
- Enable application caching features
WebSocket Issues:
- Verify proxy configuration in Baota Panel
- Check firewall settings for WebSocket ports
- Ensure proper nginx configuration if using reverse proxy
Security Note
Always change the default password immediately after deployment and regularly update your Baota Panel and CoAI.Dev installations for security.
Baota Panel deployment provides an excellent way to manage CoAI.Dev with a user-friendly interface, making it ideal for users who prefer GUI-based server management over command-line operations.