Last active
May 19, 2016 01:58
-
-
Save mageddo/9ceef6a401638c4fb3fefcbc170f66b8 to your computer and use it in GitHub Desktop.
Dockerized phpmyadmin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| USER_NAME=root | |
| PASSWORD=root | |
| PHPMYADMIN_PORT=8888 | |
| docker run --name phpmyadmin-mysql --hostname mysql.dev -p 3307:3306 -e MYSQL_ROOT_PASSWORD=$PASSWORD -d -v /var/lib/mysql:/var/lib/mysql mysql | |
| docker run --name phpmyadmin --hostname phpmyadmin.dev -p $PHPMYADMIN_PORT:80 -e MYSQL_USERNAME=$USER_NAME -d --link phpmyadmin-mysql corbinu/docker-phpmyadmin | |
| # enjoy ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment