add phpMyAdmin
This adds a default phpMyAdmin installation for easier debugging.
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
Easy WordPress development with Docker and Docker Compose.
|
||||
|
||||
With this project you can quickly run the following:
|
||||
|
||||
- [WordPress and WP CLI](https://hub.docker.com/_/wordpress/)
|
||||
- [phpMyAdmin](https://hub.docker.com/r/phpmyadmin/phpmyadmin/)
|
||||
- [MySQL](https://hub.docker.com/_/mysql/)
|
||||
|
||||
Contents:
|
||||
|
||||
- [Requirements](#requirements)
|
||||
@@ -139,3 +145,9 @@ This way you can use the CLI command above as follows:
|
||||
```
|
||||
wp plugin list
|
||||
```
|
||||
|
||||
### phpMyAdmin
|
||||
|
||||
You can also visit `http://127.0.0.1:8080` to access phpMyAdmin after starting the containers.
|
||||
|
||||
The default username is `root`, and the password is the same as supplied in the `.env` file.
|
||||
@@ -27,6 +27,17 @@ services:
|
||||
- db
|
||||
- wp
|
||||
|
||||
pma:
|
||||
image: phpmyadmin/phpmyadmin
|
||||
environment:
|
||||
PMA_HOST: db
|
||||
PMA_PORT: 3306
|
||||
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
|
||||
ports:
|
||||
- ${IP}:8080:80
|
||||
links:
|
||||
- db:db
|
||||
|
||||
db:
|
||||
image: mysql:latest # https://hub.docker.com/_/mysql/ - or mariadb https://hub.docker.com/_/mariadb
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user