add phpMyAdmin

This adds a default phpMyAdmin installation for easier debugging.
This commit is contained in:
Werner Robitza
2019-04-07 17:11:15 +02:00
parent dcf0b97ed0
commit ba3ba561ef
2 changed files with 23 additions and 0 deletions
+12
View File
@@ -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.
+11
View 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: