Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 530 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 530 Bytes

PhpMyAdmin with Docker

Provide a PhpMyAdmin container

Usage

Links allow Docker containers to discover each other and securely transfer information about MySQL container to phpMyAdmin container.

$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=my_password -d mysql
$ docker run --name phpmyadmin --link mysql:mysql -P creativearea/phpmyadmin

You can also pass MySQL server host through an environment variable:

$ docker run --name phpmyadmin -e MYSQL_SERVER_HOST=mysql -P creativearea/phpmyadmin