added db and phpmyadmin on docker compose

This commit is contained in:
emmymayo
2025-02-10 01:33:06 +01:00
parent 7269c99357
commit 9122c7f108
3 changed files with 58 additions and 11 deletions
+10 -7
View File
@@ -10,17 +10,15 @@
1. Clone the repository:
2. Build and run the Docker container:
2. Start and run the Docker container:
```bash
# Build the Docker image
docker build -t wordpress-assessment .
# Start the container
docker-compose up -d
# Run the container
docker run -d -p 8882:8882 wordpress-assessment
# Stop the container
docker-compose down
```
The WordPress site will be available at http://localhost:8882
3. Access WordPress Admin:
- URL: http://localhost:8882/wp-admin
@@ -37,6 +35,11 @@
- Login to wp-admin to verify admin access
- Check that PHP and MySQL are working correctly
6. Access phpmyadmin Admin:
- URL: http://localhost:8888
7. Mysql server would be running on port 3306
## Project Structure
### Core Files