Configuration Guide
Advanced configuration options and system settings
Database Configuration
The AI Container Manager uses MySQL for data storage. Configuration is handled through environment variables in the Docker Compose setup.
| Setting | Default Value | Description |
|---|---|---|
| MYSQL_HOST | mysql | Database host (container name) |
| MYSQL_PORT | 3306 (internal) 3316 (external) |
Database port |
| MYSQL_DATABASE | ai_container_manager | Database name |
| MYSQL_USER | aimanager | Database username |
| MYSQL_PASSWORD | ulik9910 | Database password |
GPT API Configuration
Configure the OpenAI GPT API for AI chat functionality:
Through Admin Panel:
- Login to the admin panel at
/admin/ - Navigate to "System Settings"
- Update the "GPT API Key" field
- Save changes
Through Database:
UPDATE system_settings
SET setting_value = 'your-new-api-key'
WHERE setting_key = 'gpt_api_key';
Security Note:
Keep your API key secure and never expose it in client-side code.
Network Configuration
Port configuration for services:
| Service | Internal Port | External Port | Description |
|---|---|---|---|
| Web Application | 80 | 8181 | Main application interface |
| MySQL Database | 3306 | 3316 | Database access |
| PHPMyAdmin | 80 | 8183 | Database administration |
To change ports, modify the docker-compose.yml file:
services:
apache-php:
ports:
- "8181:80" # Change 8181 to your desired port
Security Configuration
Admin Authentication:
- Default Admin: jeff / ulik9910
- Password Hashing: bcrypt with cost factor 10
- Session Management: PHP sessions with secure flags
SSH Credentials:
- Container SSH credentials are stored encrypted in the database
- Use strong passwords for container access
- Regularly rotate SSH credentials
API Security:
- GPT API key stored securely in database
- Input validation on all API endpoints
- Rate limiting for chat functionality
Monitoring Configuration
Container Health Checks:
- Check Interval: 5 minutes (configurable)
- Timeout: 30 seconds
- Retry Count: 3 attempts
Log Retention:
- Container Logs: 30 days
- Chat Logs: 7 days
- System Logs: 14 days
UI Customization
Customize the appearance and branding:
System Title and Description:
UPDATE system_settings
SET setting_value = 'Your Company Container Manager'
WHERE setting_key = 'system_title';
UPDATE system_settings
SET setting_value = 'Professional Container Management for Your Company'
WHERE setting_key = 'system_description';
CSS Customization:
Modify assets/css/main.css to change colors, fonts, and layout:
- Primary Color: #00ffff (cyan)
- Secondary Color: #ff00ff (magenta)
- Background: Dark gradient theme
- Font: Inter (Google Fonts)
Environment Variables
Key environment variables for configuration:
# Database Configuration
MYSQL_HOST=mysql
MYSQL_PORT=3306
MYSQL_DATABASE=ai_container_manager
MYSQL_USER=aimanager
MYSQL_PASSWORD=ulik9910
# Application Configuration
APP_ENV=production
DEBUG_MODE=false
LOG_LEVEL=info
# Security Configuration
SESSION_TIMEOUT=3600
PASSWORD_MIN_LENGTH=8
MAX_LOGIN_ATTEMPTS=5
Advanced Configuration Tips
- Use Docker volumes for persistent data storage
- Implement SSL/TLS certificates for production use
- Set up regular database backups
- Configure log rotation for container logs
- Use environment-specific configuration files
- Implement monitoring and alerting for critical services