Last active
October 16, 2016 22:16
-
-
Save everaldo/ba5a4c38821f392bdfd81921587b359e to your computer and use it in GitHub Desktop.
Docker / Mysql / 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
# Cria um banco de dados sistema_academico, um usuário pooifpr com senha pooifpr e senha master pooifpr | |
# Depois, instancia um phpmyadmin executando na porta 8080, linkado com o servidor recém criado | |
# | |
docker pull mysql:latest | |
docker run --name mysqlpoo -e MYSQL_ROOT_PASSWORD=pooifpr \ | |
-e MYSQL_DATABASE=sistema_academico \ | |
-e MYSQL_USER=pooifpr \ | |
-e MYSQL_PASSWORD=pooifpr \ | |
-p 3306:3306 \ | |
-d mysql | |
docker run --name myadmin -d --link mysqlpoo:db -p 8080:80 phpmyadmin/phpmyadmin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment