$ mkdir /var/www/html/myproject
$ git clone https://github.com/kprm/docker-wp-pma.git .
IP=127.0.0.1
DB_ROOT_PASSWORD=password
DB_NAME=wordpress
CHARACTER_SERVER=utf8mb4
COLLATION_SERVER=utf8mb4_unicode_ci
docker-compose up -d --build
Note: make
docker-compose pull
if you have error Error establishing a database connection
when try to open localhost
You can login to phpmyadmin 127.0.0.1:8080
by using username=root and password=password (if you dont change password before in .env
).
Will be export to path/to/myproject/wp-db/
./export.sh