When you are on production and you run docker-compose up the phpmyadmin is raised and you have to stop it manually to close this security issue because provably you won't need it.
A way to accomplish to create links between containers to when you docker-compose up SOMETHING the phpmyadmin is ignored and if you need it you could raised manually with docker-compose up phpmyadmin