Docker Setup for Local WordPress Development

preview_player
Показать описание
Are you sick of working with complicated WordPress setups using tools like XAMPP? Or maybe you've got a not-quite-working Docker configuration and need just a nudge in the right direction?

In this video, I'm going to show you an way to set up a local WordPress development environment using Docker. We'll create a local NGINX image, along with a MySQL database, and bring everything together for WordPress.

It should make it easier to keep your own plugins and/or themes in version control, while ignoring the other bits of WordPress that you don't really care about.

👉👉Grab the Code on Github!

🔗Grab My Other Products Available:

👋🏻Connect with me:

🔗References:

📖I'm also going through the Bible over at @BibleTimeWithWazoo

===---=== Chapters ===---===
00:00 - Introduction
01:05 - Creating a .env
24:00 - Define local volume mirror for WordPress content

#wordpress #docker #nginx
Рекомендации по теме
Комментарии
Автор

Very nice video and also the SSL followup. I tried in both WIndows 11 and Ubuntu with no problems - provided I remembered to use the right version of the Wordpress image! One thing missing is the Docker images are not set up for sending emails. If you looking for a new topic that would be great - ie to add the ability to send emails to the dev environment - to test contact forms etc.

brendancurtin
Автор

Great tutorial, I learnt so much about docker composer setup.👍

Just one thing at 25:50, the mount is from the local machine to the containers. So you need to copy the content from the container to your local machine first before adding the

matthewlee-mukq
Автор

Hope everyone finds some value in this one. I'm using it to try and follow up on comments left on a previous WordPress video of mine.

wazoowebbytes
Автор

Great explaining and focus on 'name' configire and setup with Nginx. Thank you
How different Apache default.conf and set up for sending emails nice to see

agnemedia
Автор

Hello there! Nice video, can you please go this tutorial one step further to use custom domain like wordpress.test and SSL certificate?

enjoin
Автор

Great tutorial, thank you very much for this job

alineoliveira
Автор

Could you please explain why some of us get this error :
docker-composer: services.networks Additional property <name of network> is not allowed
Thank you

tsukinousagi
Автор

My WordPress installer is broken and without CSS. Checking the logs shows 301 error.

The same thing for top admin bar. Luckily the dashboard works fine.

Any idea why CSS files aren't loading? Am I missing something?

(I'm using AWS EC2 instance with IP address no domain)

LuckyBravo
Автор

Hi! thanks for your tutorial, just tested this but ./src is created by the linux user, when WordPress on Docker is owned by www-data:www-data, how did you solved this?

SergioDeFalco
Автор

New to this. I downloaded your files and everything works but SSL - Getting " cannot load certificate"

dduckluvsjava
Автор

I have 2 issues here - (1) when going to homepage the front page is not showing but downloading some file instead. (2) plugin pages assets are not getting served but i'm getting 404 when requesting them. so the admin pages are not loading the content well, we have missing css, js and images files. all the files exist but nginx does not serve them and return 404s.

can you please assist?

שילוגסי
Автор

This greatly good work. Can we move this environment to be live in azure devops environments

freetime
Автор

I tried to repeat after you. And there is a problem. When we add plugins or themes, their files are not added to Docker containers.

avexar
Автор

Very useful guide! When I try to run the containers, nginx can't start due "/bin/sh: 1: /start.sh: not found" How to solve this?

PeterVatler-hvnf
Автор

i cant log in to phpmyadmiin ((
Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.


Perhaps that's why I can't install the WP -
Error establishing a database connection

michaelmurat
Автор

Nignx alway restart. is it i store container in wsl2 dir?

TrodethOulsarakham
Автор

in 19:47 why did you cut the video, I was stuck there

poh
Автор

I might have jumped a step using your files from the git repo but the default.conf is broken for me with the restarting of nginx: "nginx: [emerg] host not found in upstream "wordpress:9000" in any ideas? (I'm trying to get into docker after years of VVV 😅).

My bad, I fixed it - I was missing volumes (- wordpress:/var/www/html) & networks (- internal) params in the docker-compose yaml on the nginx service. This got things running so hopefully it helps the next person.

benfitzgerald