nanlabs / devops-reference

This repository contains different infrastructure components, CI/CD pipelines, automation tools among other resources that are used in different projects here at NaN Labs.
MIT License
42 stars 16 forks source link

Enhancement: Docker Compose Configuration for WordPress Setup #153

Closed ulises-jeremias closed 9 months ago

ulises-jeremias commented 9 months ago

What's this PR do?

Description

This pull request introduces an enhanced Docker Compose configuration for setting up a WordPress environment. The updated configuration leverages the lightweight Nginx web server, the latest WordPress version (6.3.1 with PHP 8.2), and MariaDB (11.0.3) as the database.

Changes Made

How to Test

  1. Ensure you have Docker and Docker Compose installed.
  2. Clone this branch and navigate to the project directory.
  3. Run docker-compose up -d to initiate the environment.
  4. Access WordPress at http://localhost:80 in your web browser.
  5. Experiment with the environment and functionalities.

Feel free to review, test, and provide feedback!

Summary by CodeRabbit

coderabbitai[bot] commented 9 months ago

Walkthrough

The proposed changes introduce a Docker Compose configuration for a WordPress environment with MariaDB or MySQL. The setup includes Nginx and WordPress configurations, a MySQL/MariaDB initialization script, and relevant deployment and cleanup commands.

Changes

File Summary
examples/compose-wordpress-mysql/README.md Introduces Docker Compose configuration for WordPress with MariaDB/MySQL, including deployment and cleanup commands.
examples/compose-wordpress-mysql/db/init.sql Includes SQL statements for database creation and user privilege management.
examples/compose-wordpress-mysql/nginx/default.conf Adds an Nginx configuration file for handling requests and preserving client information.
examples/compose-wordpress-mysql/wordpress/000-default.conf Adds a new Apache web server virtual host configuration.

🐇

In the land of code, where logic intertwines,

A Docker setup blooms, as bright as sunshine.

WordPress and MariaDB, together they dance,

With Nginx and Apache, in a harmonious prance.

So celebrate this change, for it's a mighty fine sight,

A testament to progress, in the soft glow of moonlight. 🌙

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume. - Additionally, enter `@coderabbitai pause` to halt the bot's ongoing reviews as any issue or review comment. To resume reviews, enter `@coderabbitai resume` as any issue or review comment.