From 2b80568d8c4feb3433262dd6ee057090fea306bc Mon Sep 17 00:00:00 2001 From: "sai.praneth10" Date: Tue, 7 Oct 2025 00:52:07 -0700 Subject: [PATCH] Added readme for docker --- WordPress-Docker/README.md | 69 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 WordPress-Docker/README.md diff --git a/WordPress-Docker/README.md b/WordPress-Docker/README.md new file mode 100644 index 0000000..4986abc --- /dev/null +++ b/WordPress-Docker/README.md @@ -0,0 +1,69 @@ +# WordPress Docker Setup + +This repository provides a Dockerized environment for running WordPress locally using Docker Compose. It's designed for quick development and testing without complex installations. + +## 🚀 Quick Start + +1. **Clone the repository:** + + ```bash + git clone https://git.1337.berkeley.edu/Committee/Secure-OCF-Web-Hosting.git + cd Secure-OCF-Web-Hosting/WordPress-Docker + ```` + +2. **Build and start the containers:** + + ```bash + docker-compose up -d + ``` + +3. **Access WordPress:** + + Open your browser and navigate to: + + ``` + http://localhost:8080 + ``` + + Follow the on-screen instructions to complete the WordPress setup. + +## 🛠️ Project Structure + +* `docker-compose.yml`: Defines the services, networks, and volumes for the WordPress and MySQL containers. +* `Dockerfile`: Customizes the WordPress image (if applicable). + +## ⚙️ Managing Containers + +* **Start containers:** + + ```bash + docker-compose start + ``` + +* **Stop containers:** + + ```bash + docker-compose stop + ``` + +* **Stop and remove containers:** + + ```bash + docker-compose down + ``` + + Add the `-v` flag to also remove volumes: + + ```bash + docker-compose down -v + ``` + +## 🔐 Accessing phpMyAdmin + +If phpMyAdmin is included in your setup: + +* Open your browser and navigate to: + + ``` + http://localhost:8081 + ```