Docker/Joomla + MySql + phpMyAdmin in Docker
Ok. I’m a novice of Docker, so probably exists better ways for run Joomla + MySql + phpMyAdmin on Docker, I dont know, but for now this is my way:
MYSQL
First step open the terminal and download MySql Docker Image:
After we can start our instance, we will named it test-mysql, root as user and 12345678 as password.
After we must to create a “volumes”, a local folder from the host on the container to store the database files.
By default, our mysql should be run on port 3306.
phpMyAdmin
Download phpMyAdmin Docker Image
Now we start the instance, naming it test-phpmyadmin and link it to the database mysql test-mysql that we have created before, and run it on the port 8084.
Now, if we connect with our browser at the address http://localhost:8084 we should have phpMyAdmin login page, and we can access with username: root and password: 12345678
Joomla
Ok, now it’s the turn of Joomla, as already done before, we must download the image:
Now we start the instance on the port 8080 with the name of test-joomla, link it at the database and create a volumes.
if it’s all correct, at the address http://localhost we should find our joomla installation.
