Skip to content

🐳docker-compose with wordpress mysql and phpmyadmin 🐳

Notifications You must be signed in to change notification settings

mkupriichuk/docker-wp-pma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose with wordpress mysql and phpmyadmin


1. create work directory

$ mkdir /var/www/html/myproject

2. clone the repo

$ git clone https://github.com/kprm/docker-wp-pma.git .

3. Change db character, collation, name and password in .env

IP=127.0.0.1
DB_ROOT_PASSWORD=password
DB_NAME=wordpress
CHARACTER_SERVER=utf8mb4
COLLATION_SERVER=utf8mb4_unicode_ci

4. Run docker-compose

docker-compose up -d --build 

5. Open localhost and install wordpress

Note: make

docker-compose pull

if you have error Error establishing a database connection when try to open localhost

PhpMyAdmin

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).

Export db

Will be export to path/to/myproject/wp-db/

./export.sh 

About

🐳docker-compose with wordpress mysql and phpmyadmin 🐳

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages