de64c528bc2ee8822ddf1f6b68b3258b341b5d3f
WordPress + Nginx + MariaDB Stack
A production-ready "Quick Start" stack featuring WordPress running via PHP-FPM and Nginx as a reverse proxy.
🚀 Quick Start
1. Clone the repository
git clone https://git.suricatingss.xyz/suricata/docker-wp-quickstart
cd docker-wp-quickstart
2. Setup Environment Variables
This project uses a base + override system for environment variables.
# Create your local env file from the example
cp .env.example .env
Open .env and update your passwords. The docker-compose.yaml is configured to load .env.example first for defaults and .env second for your specific overrides.
3. Launch the Stack
docker compose up -d
4. Access your site
Visit http://localhost:8000 in your browser to complete the WordPress installation.
🛠 Architecture
- Web Server: Nginx (Stable Alpine)
- Application: WordPress (PHP 8.5 FPM Alpine)
- Database: MariaDB (Latest)
Key Features
- Security: Nginx configuration is mounted as read-only.
- Flexibility: Supports both standard Docker Compose
.envand Portainer'sstack.envconventions. - Persistence: Named volumes are used for both database and WordPress content to ensure data survives container restarts.
📂 Project Structure
docker-compose.yaml: The orchestration file..env.example: Template for required configuration.nginx/default.conf: Custom Nginx configuration for PHP-FPM proxying.
Description