- docker >= 17.12.0+
- docker-compose
- Clone or download this repository
- Go inside of directory,
cd mysql-phpmyadmin-docker-compose
- Run this command
docker-compose up -d
This Compose file contains the following environment variables:
MYSQL_DATABASE
the default value is yourdatabaseMYSQL_ROOT_PASSWORD
the default value is setrootpasswordMYSQL_USER
the default value is dbuserMYSQL_PASSWORD
the default value is dbpasswordPHPMYADMIN_PORT
the default value is 6060
localhost:3306
- Username: dbuser
- Password: dbpassword
- URL: http://localhost:6060
- Server: mysql
- Username: root or dbuser
- Password: setrootpassword or dbpassword