added db and phpmyadmin on docker compose
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user