Start Joomla with Docker in just a few clicks
Yesterday lunchtime, while chatting with a friend, he highlighted a simple fact: explain the easiest way in the world to start a Joomla project with Docker.
The aim is to hop, hop, copy/paste a file, hop, Joomla is launched and you can start playing with the site.
Let's take a look; not in detail, but right to the point.
Here are the very few steps to follow to start your Joomla website using Docker:
-
Surf to https://hub.docker.com/_/joomla
-
Scroll down until you can the
yaml
content and click on theCopy
button. That button appears when the mouse point is over the text (hidden otherwise) -
On your computer, create a new file called
compose.yaml
and paste the content there -
The most difficult part is now: please start a new console, go to the folder where you've just created the file (in my case, I've created the file in my
/tmp/joomla
folder so I jump in it usingcd /tmp/joomla
) -
Still in your console, please run
docker compose up --detach
.
From now, Docker will download (just the first time) the Joomla CMS, PHP, Apache and MySQL. Then Docker will start the downloaded images (called containers).
Surf to http://127.0.0.1:8080/administrator
and enjoy!
The admin account to use is joomla
and his password is joomla@secured
(as defined in the yaml file you've just copied earlier).
This article is deliberately simple; please follow the Joomla tag if you want more than this introduction.