Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiran-kumar-k3/vulnweb-docker
A Docker Compose setup for easily deploying and managing a local WordPress site with a MySQL database
https://github.com/kiran-kumar-k3/vulnweb-docker
docker dockerfile testing worddpress
Last synced: 4 days ago
JSON representation
A Docker Compose setup for easily deploying and managing a local WordPress site with a MySQL database
- Host: GitHub
- URL: https://github.com/kiran-kumar-k3/vulnweb-docker
- Owner: KIRAN-KUMAR-K3
- License: mit
- Created: 2023-08-14T16:32:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-04T06:31:56.000Z (3 months ago)
- Last Synced: 2024-08-04T07:27:06.494Z (3 months ago)
- Topics: docker, dockerfile, testing, worddpress
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# đ Docker WordPress Setup
Easily set up and host a WordPress site on your local machine using Docker Compose. This project provides a seamless configuration to get you started quickly.
## đ Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Prerequisites](#prerequisites)
- [Setup Instructions](#setup-instructions)
- [Clone the Repository](#clone-the-repository)
- [Navigate to Project Directory](#navigate-to-project-directory)
- [Start the Services](#start-the-services)
- [Accessing WordPress](#accessing-wordpress)
- [Managing the Services](#managing-the-services)
- [Stopping the Services](#stopping-the-services)
- [Viewing Logs](#viewing-logs)
- [Restarting the Services](#restarting-the-services)
- [License](#license)
- [Conclusion](#conclusion)## đ Introduction
This project leverages Docker Compose to create a local WordPress development environment. It includes a MySQL database service and a WordPress service configured to work together seamlessly.
## ⨠Features
- **Quick Setup**: Get your WordPress site up and running in minutes.
- **Persistent Data**: Data is stored persistently using Docker volumes.
- **Easy Management**: Easily start, stop, and manage your WordPress and MySQL services.## đ Prerequisites
Before you begin, ensure that you have Docker and Docker Compose installed on your machine. You can download and install them from the [official Docker website](https://www.docker.com/get-started).
## đ ī¸ Setup Instructions
### đ Clone the Repository
First, clone this repository to your local machine:
```bash
git clone https://github.com/KIRAN-KUMAR-K3/vulnweb-docker.git
```### đ Navigate to Project Directory
Navigate into the project directory:
```bash
cd vulnweb-docker
```### âļī¸ Start the Services
Start the WordPress and MySQL services using Docker Compose:
```bash
docker-compose up -d
```The `-d` flag runs the containers in detached mode, allowing you to continue using your terminal.
## đ Accessing WordPress
Once the services are up and running, you can access your WordPress site by opening your web browser and navigating to:
```
http://localhost
```## đ§ Managing the Services
### âšī¸ Stopping the Services
To stop and remove the services, use the following command:
```bash
docker-compose down
```This command stops the containers and removes the associated networks but preserves the volumes for persistent data.
### đ Viewing Logs
If you need to view the logs for any of the services, use:
```bash
docker-compose logs
```You can also view logs for a specific service by specifying the service name:
```bash
docker-compose logs wordpress
```### đ Restarting the Services
To restart the services, first stop them and then start them again:
```bash
docker-compose down
docker-compose up -d
```## đ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## đ Conclusion
This Docker Compose setup provides an efficient way to run a WordPress site with a MySQL database locally. With Docker Compose, you can easily manage the services, ensuring a smooth and hassle-free development experience.