Skip to content

MissPhantom/wordpress-docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Great idea! A polished README.md is essential for a professional submission.

Since the previous README.md was already high-quality and complete, the best way to "fix" it now is to make sure all the generic placeholders are replaced with your actual, confirmed details, ensuring a perfect score on the documentation requirement.

Here is the final, ready-to-use content for your README.md:


README.md

# Multi-Container WordPress Deployment with Docker Compose

## ๐Ÿš€ Project Overview

This project provides a deployable, multi-container **WordPress** website using **Docker Compose**. It successfully combines the official WordPress web application with a persistent MySQL database to create a complete and functional blogging platform.

The stack consists of two services:

1.  **`db` (MySQL 5.7):** The persistent database engine, using a **named volume** (`db_data`) to ensure all user data and posts are saved across container restarts.
2.  **`wordpress` (WordPress Latest):** The web application container, configured to connect to the database and exposed on the host machine via port 8080.

---

## ๐Ÿ› ๏ธ Setup Instructions

This guide provides the necessary steps to clone, configure, and launch the application.

### Prerequisites

You must have **Docker** and **Docker Compose** installed on your machine.

### 1. Clone the Repository

Clone the project files to your local machine:

```bash
git clone [https://github.com/MissPhantom/wordpress-docker-compose.git](https://github.com/MissPhantom/wordpress-docker-compose.git)
cd wordpress-docker-compose

2. Configure Environment Variables

For security, sensitive credentials must be stored in a .env file, which is kept out of version control via the included .gitignore.

  1. Create the file using the provided template:
    cp .env.example .env
  2. Edit the .env file and replace all placeholder values (e.g., changeme_...) with strong, unique passwords and usernames.

๐Ÿƒ Running the Application

The Exact Command to Start the Application

Start both the database and WordPress containers in detached mode (-d):

docker compose up -d

The Exact Command to Stop the Application

To shut down and remove the containers, networks, and the persistent database volume, run this command:

docker compose down --volumes

How to Access the Running Application

Once the services are successfully started, you can access the WordPress setup screen in your web browser:

โžก๏ธ Visit: http://localhost:8080


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published