So when i take the container down how do i take it down and bring it back up in a way where i keep my previous container. As taking in down and bringing it back up just recreates everything?
Hey Brad. I hope you make a follow-up video explaining how we can take the locally developed WordPress service containers and transfer to live webservers. Essentially making the whole installation portable.
Hey, thanks for the video. For anyone having a database connection error: For WORDPRESS_DB_HOST use the full container name that compose will generate instead of only the service name. E.g. wordpress-db-1:3306 After a lot of troubleshooting that fixed it for me. :)
Brilliant, could you please do a video deploying a WordPress site from docker to digital ocean, This work flow will only increase wordpress popularity, seriously time saving, Thanks
Hey Brad, please make a part two showing us to deploy a finished WordPress site from localhost that was using docker to digitalocean with all the url rewrite to the domain from the local domain. I tried hours don't know how to do it. That would be so epic if you can do a video about it, because now most of us just use docker to create WordPress for localhost to develop site but don't know when it's done in localhost how to deploy it with all the lamp stack things from the docker container to a production environment like digitalocean using docker and having the database changed to the domain instead the local host in the db. Hope you can make a part two showing us how to do it. You are so awesome love all your video tutorials it helps so much! Now I install a lamp Stack to a new vps and do all by hand again on digitalocean would be epic to have a way to deploy the local wordpress to a production environment using docker 😀
You literally made my life so easy, I've spent the whole day yesterday figuring out to setup Wordpress using XAMMP and MAMP and it just won't work, I've read a dozen articles at least to understand what I'm doing wrong. A mere thanks wouldn't be enough to say but thank you, Brad!
This configuration is the only thing that worked for me after 10+ hours of messing with this. Everytime I would run docker-compose up -d using my last docker-compose file, the wp_content folder would always be completely empty and I had no idea why. Thank you so f'ing much, I can't tell you what a relief this has been. I will most definitely be purchasing some of your courses. Again, you are awesome and thank you.
Great! Not many people, talking about a Docker, are saying, that this could be used exactly like that (as a quckly setup server for a local machine). That was really useful for me!
THANKS so much for this! Easy to follow, I have spent YEARS using WAMP/XAMP etc, just started with Docker and this video makes it REALLY easy to get started developing WP sites locally with Docker :)
Headless wordpress would be so awesome. :) cause wp has a great API and woocommerce too so we could build, a whole shop in angular or something like that. Please please do that tutorial or even better make it a full course. I would buy that for sure! :) You are great as always man thanks for all the knowledge. :)
@@alexandrmartynov5281 well woocommerce is plugin that helps us to create whole shop logic (it is shop logic). And has great API that we can use to create like SinglePageApp with some framework like Angular, Vue or React. Where the whole back-end will be done by wordpress & woocommerce, and some of our custom functions that will return JSON. :) Hopefully I made my comment clear now. :) Cheers!
Also, if you intend to use Wordpress through a Cloudflare tunnel, you need to setup the tunnel and go through the Wordpress setup through your domain! If you set it up through local host, you won't be able to access the website through the tunnel.
Incredibly helpful video, thank you! I appreciate how clear and concise this was. I used vim directly on a fresh Debian VM and I ended up running into some issues editing YAML, but after some vimrc configuration I was able to run everything as you described it.
SUPER hyped for the headless wordpress tutorial you're coming out with! I've been trying to make a site with vue and wordpress api for a client but still in design phases, so super timely. what a life saver that would be to watch my hero make it that way
This is 100x better than messing with lamp and mampp and zampp and whatever else. I have never messed with docker cause I thought it would be a nightmare to configure
Wow, my first contact with docker, and I like it. Great tutorial as always. Maybe you could think about a series concerning docker and Laravel, esp. for Win Users who are not able to use Valet... Thanks again for your great work and inspirations...
Hey man looking forward to the headless video coming next! Going to start using it at work in the next few weeks and want to impress all the other devs with my insider knowledge :)
Not sure who needs to hear this but if you have issues around 9:00 with the command, you need to have docker-compose installed which is seperate from docker(at least on linux)
Man this is gold! Thank you. Now docker is 100% clear to me. Before watching this video, I wasn't sure about the volumes. This can be done with any php application I believe.
So many docker tutorials i have watched and this one is the first that taught me properly. You are the best man. Can you do a similar short tutorial on setting up LEMP stack from scratch, I am currently using something I got from github but there is not much I could change on it. It just won't accept my changes.
In wordpress service I had to put one more environment variable named: WORDPRESS_DB_NAME otherwise it was showing me Error establishing database connection. After putting that environment variable with the exact database name, it works! Anyways thank you.
this is one of the best videos that i've seen about this topic, but when i run it on my explorer is slow, like-5-8 seconds slow!! can you please help me to solve this issue?
Great, simple, and short. Everything worked great. I was able to run WordPress with just enabling a MySQL image, but where is the apache settings, the PHP version?
Brilliant video thanks. One observation - I had to go with docker toolbox because I don't have the right version of Windows for Docker Windows desktop. Consequently 'localhost:8000' doesn't respond with the Wordpress site as expected. After a bit of digging around I discovered I had to use the VIrtual Machine's IP address (docker toolbox uses VirtualBox). This can be found at 'docker-machine ip'. Hope that helps someone else.
Hay, Travis, great video! I do have one question, how would I create multiple WordPress sites? Would I have to just change the ports from 8000:80 to 8001:80 for a new site?
Hi Brad, this is a great video. Can you share some information on how to deploy this to both shared hosting platforms and DigitalOcean. Awesome content as always
There's mention on the github page about having to restart the container if you get the db error. For starters you don't specify which container...restart the db one. BUT you completely missed the wordpress container environmnet key "WORDPRESS_DB_NAME: ". I had to add that to get it working
Thanks for this Brad. I am new to docker so wondering whether I need to change settings like the DB name to create a new container for a new website. Thanks
Thanks Brad! Can you tell me, what your Wordpress tutorial do I need to watch to build a site, customize theme with own colors and images, simply manage the content and also convert my own HTML&CSS code to Wordpress?
Hi Brad, awesome as usually, BUT in the local computer everything working good, after I tried to move whole blog to the outside server I got problem. I'm trying to do port forwarding with nginx, but wordpress got stock with home page 127.0.0.1:8000, it is ok, I tried to change manually through DB to my blog name URL, and it is no lack again. Can you explain what should I do? Thx.
Also guys, one thing I forgot to mention is to tear everything down, just do
$ docker-compose down --volumes
Thanks for this video.
Can we have a video on microservices I mean how it works with React Application?
So when i take the container down how do i take it down and bring it back up in a way where i keep my previous container. As taking in down and bringing it back up just recreates everything?
@@elliotmorris4576 I'd like to know how to do this as well. Anyone? Thanks for the great content as always...! Looking fw to the headless WP series =)
@@elliotmorris4576 did you figure this out? Same thing happens to me. Thanks!!
I'm experiencing unexpected EOF. Any idea why?
Hey Brad. I hope you make a follow-up video explaining how we can take the locally developed WordPress service containers and transfer to live webservers. Essentially making the whole installation portable.
Hey, thanks for the video. For anyone having a database connection error: For WORDPRESS_DB_HOST use the full container name that compose will generate instead of only the service name. E.g. wordpress-db-1:3306
After a lot of troubleshooting that fixed it for me. :)
Brilliant, could you please do a video deploying a WordPress site from docker to digital ocean,
This work flow will only increase wordpress popularity, seriously time saving,
Thanks
Hey Brad, please make a part two showing us to deploy a finished WordPress site from localhost that was using docker to digitalocean with all the url rewrite to the domain from the local domain. I tried hours don't know how to do it. That would be so epic if you can do a video about it, because now most of us just use docker to create WordPress for localhost to develop site but don't know when it's done in localhost how to deploy it with all the lamp stack things from the docker container to a production environment like digitalocean using docker and having the database changed to the domain instead the local host in the db. Hope you can make a part two showing us how to do it. You are so awesome love all your video tutorials it helps so much! Now I install a lamp Stack to a new vps and do all by hand again on digitalocean would be epic to have a way to deploy the local wordpress to a production environment using docker 😀
It would be the best videos ever about Docker if you do so Brad. Seems to be pretty hard to achieve this...challenge accepted Brad? :p
@@rigohohn6123 Anyone figured this out?
Have you all tried wordmove? Works quite well.
Bravo Brad! 👏🏼After several hours and 8 different tutorials, this is the only process from scratch that works. Bless you, thank you
You literally made my life so easy, I've spent the whole day yesterday figuring out to setup Wordpress using XAMMP and MAMP and it just won't work, I've read a dozen articles at least to understand what I'm doing wrong. A mere thanks wouldn't be enough to say but thank you, Brad!
Kieran from #100devs
@@danielrodas7692 Aye! 😉🍻
This configuration is the only thing that worked for me after 10+ hours of messing with this. Everytime I would run docker-compose up -d using my last docker-compose file, the wp_content folder would always be completely empty and I had no idea why. Thank you so f'ing much, I can't tell you what a relief this has been. I will most definitely be purchasing some of your courses. Again, you are awesome and thank you.
calm yet dense explaining. never had the urge to skip or fast forward.
just perfect, thank you!
2:46,touch docker-compose yaml
8:43,docker ps
8:50,docker images
9:06,docker-compose up -d
9:35,docker ps
Simple, straight, to the point.
"No-nonsense guide to build WordPress with docker compose."
Awesome.
Great! Not many people, talking about a Docker, are saying, that this could be used exactly like that (as a quckly setup server for a local machine). That was really useful for me!
THANKS so much for this! Easy to follow, I have spent YEARS using WAMP/XAMP etc, just started with Docker and this video makes it REALLY easy to get started developing WP sites locally with Docker :)
Every time I hear the intro sound, I scroll down and hit like, then Watch the video because it is Brad Traversy. Thanks buddy for help in everything..
Headless wordpress would be so awesome. :) cause wp has a great API and woocommerce too so we could build, a whole shop in angular or something like that. Please please do that tutorial or even better make it a full course. I would buy that for sure! :) You are great as always man thanks for all the knowledge. :)
Hopefully with SSR :D
what do you mean by whole shop in angular? how headless should work? what does it mean?
@@alexandrmartynov5281 well woocommerce is plugin that helps us to create whole shop logic (it is shop logic). And has great API that we can use to create like SinglePageApp with some framework like Angular, Vue or React. Where the whole back-end will be done by wordpress & woocommerce, and some of our custom functions that will return JSON. :) Hopefully I made my comment clear now. :) Cheers!
Yes please!!
thanks. it's clear. headles means it runs from something like amazon lambda and not just some instance/vps right?
Genuinely great tutorial, many thanks man. Worked flawlessly where other tutorials/guides did not.
Also, if you intend to use Wordpress through a Cloudflare tunnel, you need to setup the tunnel and go through the Wordpress setup through your domain! If you set it up through local host, you won't be able to access the website through the tunnel.
There is levels to this, docker is awesome once you get the hang of it.
I cannot say more thanks to you in any context enough. you are my hero and i humbly say thank you again and forever
Incredibly helpful video, thank you! I appreciate how clear and concise this was.
I used vim directly on a fresh Debian VM and I ended up running into some issues editing YAML, but after some vimrc configuration I was able to run everything as you described it.
Watching in 2021. Big love brad! you work is impacting so many.
SUPER hyped for the headless wordpress tutorial you're coming out with!
I've been trying to make a site with vue and wordpress api for a client but still in design phases, so super timely. what a life saver that would be to watch my hero make it that way
Awesome Tutorial Sir! ....Just tested it on GCP it worked like a charm. Thank you.
Finally headless WordPress coming. I can't wait.
Wow! Simple and straight to the point. This helped me a lot getting setup and understand Docker in my new job. Thanks so much!!
This is 100x better than messing with lamp and mampp and zampp and whatever else. I have never messed with docker cause I thought it would be a nightmare to configure
Brad just wanna say thank you for delivering amazing content for free, you're my inspiration ( I started my own channel )
You are a god! after three videos in a row, SUBSCRIBED!!! Great work men! Keep it up!😁
Thank you so much for this video. You just unlocked a puzzle in my head so effortlessly. Grateful for this lesson.
realtalk! this is the best chanel
Thanks Carlo
NO! WE! thankyou for your great videos
Thanks so much, this will come in handy in setting up a new WordPress site without all the extra work or XAMPP 👍 Can't wait to try this one out
Wow, my first contact with docker, and I like it. Great tutorial as always. Maybe you could think about a series concerning docker and Laravel, esp. for Win Users who are not able to use Valet... Thanks again for your great work and inspirations...
8:45, terminal
docker ps
docker images
9:10,docker-compose up -d
9:35, docker ps
9:50, localhost:8000
11:16, docker-compose.yaml
tk u sr
Thanks, concise and useful tutorial.
Will always take a look whenever I want to setup WordPress in docker.
i love you man you are the only one that give me this kind of opportunity to always learn
Hey man looking forward to the headless video coming next! Going to start using it at work in the next few weeks and want to impress all the other devs with my insider knowledge :)
I ❤ Docker
Not sure who needs to hear this but if you have issues around 9:00 with the command, you need to have docker-compose installed which is seperate from docker(at least on linux)
Combined with either traefik or nginex as reverse proxy, you can easily deploy as many containers as you like.
Man this is gold! Thank you. Now docker is 100% clear to me. Before watching this video, I wasn't sure about the volumes. This can be done with any php application I believe.
This got me interested into docker thanks brad!
Best Docker tutorial easy and fast! Thank you mate
So many docker tutorials i have watched and this one is the first that taught me properly. You are the best man.
Can you do a similar short tutorial on setting up LEMP stack from scratch, I am currently using something I got from github but there is not much I could change on it. It just won't accept my changes.
Awesome and helpful video, thank you! I appreciate how clear and to the point this was.
Great video, was quick and understandable!!
Can you do an update on it or with a different video on how to enable SSL?
seriously man , u re brilliant
OMG thank you. Im gonna try it out. I keep installing XAMP in my mac but it work.
sweet tutorial. love docker compose
Thank. It is realy essensial guide about worpress and docker. Thank!
Hey Brad, thanks for this. Keep up the great work.
Always eager to see your videos every time I see it on my notifications it just makes my day 😍
Awesome, waiting for that headless WP video :)
In wordpress service I had to put one more environment variable named: WORDPRESS_DB_NAME otherwise it was showing me Error establishing database connection.
After putting that environment variable with the exact database name, it works!
Anyways thank you.
This HELPED!
Thank you brad. I Think this year you should build something using the microservice Architecture. Probably a Udemy course
Thanks a lot. A very concise a great reference for wordpress with Docker.
Again first one 😀 i have not waited for my girlfriend's message the way i wait for your videos 😍
LOL...awesome :) Thank you
@@TraversyMedia cheers to the GOAT Brad :)
Very Nice clear and easy to understand tutorial as always.
Perfect explanation, Thanks for the awesome video👍👍👍
Brad please make a video on updates of php 7.3 please I will appreciate.
Good idea. I want to do a crash course on PHP 7 all together
when you be the next video available? can't wait to continue this course, which is going great by the way! congrats Brad
this is one of the best videos that i've seen about this topic, but when i run it on my explorer is slow, like-5-8 seconds slow!! can you please help me to solve this issue?
COOL!!! 609k subscribers!!!! Congrats!!!
Will certainly check out that headless WP video 👍🏽👌🏽
Great, simple, and short. Everything worked great. I was able to run WordPress with just enabling a MySQL image, but where is the apache settings, the PHP version?
My prayers have been answered!!😄 Thank you Brad!
thanks a lot man!! i'm really into this sre thingy
Awesome. all worked perfectly. gave the like and you have a new subscriber.
Thanks brad, this was awesome! :) I am finally getting started with docker ❤️
excellent man!!!!! Short and Simple
Brilliant video thanks. One observation - I had to go with docker toolbox because I don't have the right version of Windows for Docker Windows desktop. Consequently 'localhost:8000' doesn't respond with the Wordpress site as expected. After a bit of digging around I discovered I had to use the VIrtual Machine's IP address (docker toolbox uses VirtualBox). This can be found at 'docker-machine ip'. Hope that helps someone else.
Nice job! Everything works as expected :)
Hay, Travis, great video! I do have one question, how would I create multiple WordPress sites? Would I have to just change the ports from 8000:80 to 8001:80 for a new site?
Really good, straight to the point! Thank you!
A working solution, thanks.
Thank you. Everything works. How to stop docker and start so not to lose data? If i installed software install docker container
Realy helped, thanks!
Very well explained sir thanks for the informative video
Thanks brad! you're always a life saver. =)
Hi Brad, this is a great video. Can you share some information on how to deploy this to both shared hosting platforms and DigitalOcean. Awesome content as always
Awesome tutorial. painless and to the point. Thanks :)
Super useful tutorial. Tnx a lot 👍
Always usefull! Thank you!
This is great thank you!
Loving these videos🎊🎉
Bro ilove this tutorial thanks for this!!!
cool! thanks Brad!
This really helped, thanks a lot
Fantastic tutorial! Do you have one connecting your Docker container to a domain name?
Where do the db_data files get stored? And if we bring down the containers with docker-compose down -v , will it erase the database ?
Oh Brad, thank you, thank you, thank you!
Would be amazing to see it deployed with a next js frontend
Muchas gracias Brad! Como siempre gracias por el contenido 😄. #Notificationsquad
Hi Brad !
Please make some intro tuts on Microservices with Node js ?
There's mention on the github page about having to restart the container if you get the db error. For starters you don't specify which container...restart the db one. BUT you completely missed the wordpress container environmnet key "WORDPRESS_DB_NAME: ". I had to add that to get it working
Hi Brad! That's awesome. I'm eager to see you making videos with iOS swift. Any chance?
thanks for the help!
I'd like to see a tutorial for WP backend and React frontend :)
Awesome thank you so much !
Thanks for this Brad. I am new to docker so wondering whether I need to change settings like the DB name to create a new container for a new website. Thanks
This was great. I am still looking for the method for making code changes and pushing to git.
You can create some volumes on the wordpress service and edit on them but I'm still looking at how to push them I.E. to dockerhub
Thanks Brad! Can you tell me, what your Wordpress tutorial do I need to watch to build a site, customize theme with own colors and images, simply manage the content and also convert my own HTML&CSS code to Wordpress?
Hi Brad, awesome as usually, BUT in the local computer everything working good, after I tried to move whole blog to the outside server I got problem. I'm trying to do port forwarding with nginx, but wordpress got stock with home page 127.0.0.1:8000, it is ok, I tried to change manually through DB to my blog name URL, and it is no lack again. Can you explain what should I do? Thx.