Connect phpmyadmin Docker container to an existing MariaDB Docker container

First of all, you must have a working MariaDB container. This will run on a specific port, i.e. 192.168.0.80:3306

Creating a phpmyadmin Docker container

  1. First of all, download phpmyadmin/phpmyadmin:latest from the Docker app on your Synology NAS
  2. Once the image is downloaded, double click on it to start the installation process
  3. Give priority to the container and set it to autoresatart if it dies
  4. In the environmental variables, add PMA_ARBITRARY and assign it a value 1. This is necessary so that, when trying to login to phpmyadmin, we are asked to input the server name (we need this to connect to the MariaDB container)

Connecting phpmyadmin to the MariaDB container

  1. In the server name, specify your NAS ip and the MariaDB port (i.e. 192.168.0.80:3306
  2. Use the username and password of the desired MariaDB user you want to connect with

First of all, you must have a working MariaDB container. This will run on a specific port, i.e. 192.168.0.80:3306