Installing WordPress with MySQL/MariaDB and PHPMyAdmin on a Docker Container in 10 minutes (2020)

Published on September 25, 2022 by

00:00 – Introduction
01:00 – MariaDB
04:38 – WordPress (Apache)
08:02 – PHPMyAdmin

Learn how to containerize a WordPress installation along with MariaDB and PHPMyAdmin on a docker container all in less than 10 minutes.

#wordpress #docker #phpmyadmin #mysql #mariadb


Add your comment


  • Ashutosh Pandey 3 years ago

    hello can you suggest me some docker projects where we can use in real world cases or in infrastructure…

  • René Raps 2 years ago

    I own a QNAP NAS with installed Container Station. It looks so very easy, but I didn't succeed installing MariaDB.
    A QNAP NAS comes with built in MariaDB 5.5.57. WordPress 5.x prefers MariaDB 10.x. Both WordPress 5 and MariaDB 10 are mush faster than the older versions.
    You did this demo on Windows 10. I could create this script on Windows 10 too.
    Is it possible to port the container to the QNAP NAS?
    If not, how could I run the docker-compose.yml on the QNAP NAS? isn't very useful in finding solutions for installing a working MariaDB in Container Station.

  • Yoyo Fernandez 2 years ago

    Good explanation. Thank you very much!
    Would you recommend to run this on production? and how would you handle the backups if on production?

  • shiva kumar Panaganti 2 years ago

    Hello! I'm using wordpress and mysql in Docker which is installed on an ubuntu 16.01 LTS minimal OS on f1-micro instance on google cloud platform.

    I want to add PHPmyadmin to the existing docker container so that I can access the database without any hastle. Any idea or suggestions on how to do it?

  • shiva kumar Panaganti 2 years ago

    And also how to add openlitespeed web server(as it delivers highest speeds with LS cache plugin). ♥️♥️

  • Josh Hernandez 2 years ago

    wow FANTASTIC!!! you have earned my subscription and infinite likes!

  • Cliff 1 year ago

    I followed all steps start to finish and everything appears to work great. But, for some reason docker ps does not show phpmyadmin listening on any ports. The .yml does have ports: ['12000:80'] like your guide. Suggestions?
    Edit: see that it stills shows "restarting (1)" for the last half hour. Tried docker-compose down / up -d a few times same result. Going to guess platform issue (doing this on RPi).

  • Edder Ramírez 1 year ago

    awesome, thanks for this video.

  • Prem Kumar 1 year ago

    Hi there,

    I deployed the same Yml file to Azure web app. The app works fine but it loads only WordPress. How to access PhpMyadmin??

  • x X 11 months ago

    how do you load an exisiting wordpress sql dump into docker? the only tutorials i can find are for new installations.

  • Adil Azmy 8 months ago

    Great tutorial. One question… why you dont map a current directory folder to the db_data so the project folder can be moved to another machine easily (dev, tests…etc…)? Is there other way to do this?

  • Esrat Jahan Shawon 6 months ago

    Nice Tutorial,i found another tutorial,

    how to install and configure Mariadb & wordpress in Docker

  • Yo Yo 6 months ago

    Apakah ada github untuk souce code nya

  • Влад Кушнир 4 months ago

    Man please help, I did exactly the same like you,but I’ve got an error “error establishing a database connection” and nothing helps