[Comment](https: // Since there was a request to use phpMyAdmin at qiita.com/ucan-lab/items/5fc1281cd8076c8ac9f4#comment-6cb955aac0bed2872261), I will create a supplementary article.
https://github.com/ucan-lab/docker-laravel
docker-compose.yml
volumes:
#Postscript
pma-session-store:
services:
#Postscript
pma:
image: phpmyadmin/phpmyadmin:5.0.2
environment:
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=secret
ports:
- 8080:80
volumes:
- pma-session-store:/sessions
$ docker-compose up -d
http://127.0.0.1:8080
If you access the above URL and the phpMyAdmin screen is displayed, it is ok.
In my db container settings, I have set the authentication method to the new caching_sha2_password in MySQL 8.0 series. Since phpMyAdmin does not support caching_sha2_password unless it is 5.0.1 or later, the new version is explicitly specified in the tag. It may be okay to remove it when the latest points to the 5th series.
(Since there is no particular inconvenience with client tools such as MySQL CLI and Sequel Ace, I personally think that it is not necessary to include phpMyAdmin)
Recommended Posts