How to dockerize WordPress using docker-compose

preview_player
Показать описание
Dockerize WordPress in just 5 minutes!
In this tutorial I explain how to setup #Wordpress 5 project using popular tool #docker compose with MySQL database, Nginx and make full database backups. I show how to create new WordPress project and configure docker both for local WordPress development and for production. Also I show:
* how to use docker volumes
* how to re-use volumes from other containers
* how to setup Nginx config
* how to connect to MySQL database from PhpStorm
* how to send emails from docker

⭐️ Final result you can find here ⭐️

⭐️ Resources ⭐️
🔗 Book O'Reilly "Head first design patterns"

⭐️ Support channel on Patreon ⭐️

Get € 20 on Hetzner Cloud hosting:

Register domain without hassle on GoDaddy

⭐️ TABLE OF CONTENT ⭐️

00:00:00 Introduction
00:00:19 Configure Docker for local development
00:03:15 Configure Docker for production
00:04:08 Connect to database from PhpStorm
00:04:46 Perform database backup
Рекомендации по теме
Комментарии
Автор

And how you handle sending emails in WordPress using docker?

CapCoding
Автор

Great one! Thank you. Still I need to see one more time. But first good Docker tutorial ever.

cruzo
Автор

I want to make a docker image for wordpress and connect it to the Aws RDS dB I created. I stored the db credentials in secrets manager and called them in an wp-config.php file then I mounted the wp-config.php in the docker yml file. I don't need the SQL instance in this case right?

exoticme
Автор

the wordpress still runs from port 8080 and not 80 or am I missing something?

eugenmalatov
Автор

Hi there,
I am using manjaro linux and after docker up I can't create new folder and file in plugins and themes from VSCode. Can you tell me how to solve that?

khandakershahi