A secure and scalable WordPress deployment using Docker containers.
- WordPress with Apache
- MySQL 5.7 database
- Environment variable configuration
- Health checks
- SSL support
- Security headers
- Persistent volumes
- Monitoring capabilities
- Prometheus metrics collection
- Grafana dashboards
- Alert management
- Performance monitoring
- Resource usage tracking
- Docker
- Docker Compose
- Git
- Clone the repository:
git clone https://github.com/yourusername/cloud-fameve.git
cd cloud-fameve- Create and configure environment variables:
cp .env.example .env
# Edit .env with your configuration- Start the containers:
docker-compose up -d- Access WordPress:
- Open http://localhost:8000 in your browser
- Complete the WordPress installation
Edit the .env file to configure:
- Database credentials
- WordPress settings
- Port mappings
- Monitoring settings
- Grafana admin password
- Prometheus retention period
- Alert manager email
- Place your SSL certificates in the
ssldirectory - Uncomment SSL configuration in
apache2.conf - Update port mappings in
docker-compose.yml
- Access Grafana at http://localhost:3000
- Default credentials: admin / (password from .env)
- Pre-configured dashboards for:
- CPU and Memory usage
- MySQL performance
- Nginx metrics
- WordPress health
- Access Prometheus at http://localhost:9090
- Collects metrics from:
- WordPress container
- MySQL database
- Nginx server
- System resources
Configured alerts for:
- High CPU usage (>80%)
- High memory usage (>512MB)
- MySQL connection issues
- Nginx error rates
- Slow query detection
- WordPress container health monitoring
- MySQL database health checks
- Nginx server status
- Automatic container recovery
- Secure headers
- SSL support
- Environment variable configuration
- Proper file permissions
- Regular security updates
- Monitoring and alerting for security events
# Backup database
docker-compose exec db mysqldump -u root -p${MYSQL_ROOT_PASSWORD} ${MYSQL_DATABASE} > backup.sql
# Backup WordPress files
tar -czf wordpress_backup.tar.gz ./app# Update containers
docker-compose pull
docker-compose up -d- Check container status:
docker-compose ps- View logs:
docker-compose logs -f- Restart services:
docker-compose restart- Check monitoring:
- View Grafana dashboards for performance issues
- Check Prometheus metrics for anomalies
- Review alert history in Grafana
This project is licensed under the GNU General Public License v3.0 with special authorization from the original owner. See the LICENSE file for details.
Key points about the license:
- Free to use, modify, and distribute
- Must include original copyright notice
- Must distribute under the same license terms
- Original owner maintains rights to official repository and updates
- Commercial use is permitted
- Attribution requirements apply
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
Please ensure your contributions comply with the license terms and include appropriate attribution.