Mysql, phpmyadmin and docker

Hey,

  • Issue type: configuration problem
  • OS Version/build: Ubuntu 22.04.5 LTS
  • App version: latest
    I am new at docker. But I can open the phpmyadmin. The problem is that I have another mysql port in the docker-compose. How can I change the Port of the MYSQL Server for phpmyadmin, so it can connect to the mysql backend?
    I am using the official phpmyadmin image.
    mysqli::real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo for db failed: Temporary failure in name resolution

Kind Regards,

Just read the description of the image on Docker hub and you will find the env variables to set the hostname (PMA_HOST) of the database and more

https://hub.docker.com/_/phpmyadmin