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
- First of all, download
phpmyadmin/phpmyadmin:latestfrom the Docker app on your Synology NAS - Once the image is downloaded, double click on it to start the installation process
- Give priority to the container and set it to autoresatart if it dies
- In the environmental variables, add
PMA_ARBITRARYand assign it a value1. 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
- In the server name, specify your NAS ip and the MariaDB port (i.e.
192.168.0.80:3306 - 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