Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
Learn more docker compose here
- Clone this repository
git clone git@github.com:fuadajip/dockercompose-mysql-phpmyadmin.git
- Change to directory
cd dockercompose-mysql-phpmyadmin
- Up the compose
docker-compose up -d
- Access phpmyadmin
your_ip:8183
Server: mysql
Username: root/user
Password: root/user
- Access mysql on terminal
docker exec -it mysql_container_name mysql -u root -p
PMA_ARBITRARY | when set to 1 connection to the arbitrary server will be allowed |
PPMA_HOST | define address/host name of the MySQL server |
PMA_PORT | define port of the MySQL server |