Quick Wordpress Setup With Docker

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024

Комментарии • 341

  • @TraversyMedia
    @TraversyMedia  5 лет назад +77

    Also guys, one thing I forgot to mention is to tear everything down, just do
    $ docker-compose down --volumes

    • @saumitravshl
      @saumitravshl 5 лет назад +2

      Thanks for this video.
      Can we have a video on microservices I mean how it works with React Application?

    • @elliotmorris4576
      @elliotmorris4576 5 лет назад +2

      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?

    • @Iwtfgege
      @Iwtfgege 5 лет назад

      @@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 =)

    • @Crazy-Roland-vDrums
      @Crazy-Roland-vDrums 5 лет назад

      @@elliotmorris4576 did you figure this out? Same thing happens to me. Thanks!!

    • @bookwormhead
      @bookwormhead 5 лет назад

      I'm experiencing unexpected EOF. Any idea why?

  • @azazahamed
    @azazahamed 5 лет назад +66

    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.

  • @steave1425
    @steave1425 Год назад +5

    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. :)

  • @adamgulyas4076
    @adamgulyas4076 4 года назад +10

    Bravo Brad! 👏🏼After several hours and 8 different tutorials, this is the only process from scratch that works. Bless you, thank you

  • @techbizlife
    @techbizlife 4 года назад +14

    2:46,touch docker-compose yaml
    8:43,docker ps
    8:50,docker images
    9:06,docker-compose up -d
    9:35,docker ps

  • @fichthammerli7282
    @fichthammerli7282 4 года назад +2

    calm yet dense explaining. never had the urge to skip or fast forward.
    just perfect, thank you!

  • @clivenoonan4016
    @clivenoonan4016 5 лет назад +65

    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

    • @rigohohn6123
      @rigohohn6123 5 лет назад +12

      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 😀

    • @ruzma
      @ruzma 5 лет назад +4

      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

    • @denniszenanywhere
      @denniszenanywhere 4 года назад

      @@rigohohn6123 Anyone figured this out?

    • @mjscpr
      @mjscpr 3 года назад

      Have you all tried wordmove? Works quite well.

  • @ajcics
    @ajcics 5 лет назад +1

    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.

  • @chempranav
    @chempranav 2 года назад +1

    Simple, straight, to the point.
    "No-nonsense guide to build WordPress with docker compose."
    Awesome.

  • @kieran2347
    @kieran2347 3 года назад +2

    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!

  • @geraldbullardjr
    @geraldbullardjr Год назад

    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 :)

  • @aleksekokorev
    @aleksekokorev 5 лет назад

    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!

  • @hasan4131
    @hasan4131 3 года назад

    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..

  • @lexerquine3008
    @lexerquine3008 3 года назад

    I cannot say more thanks to you in any context enough. you are my hero and i humbly say thank you again and forever

  • @codedbychavez8190
    @codedbychavez8190 2 года назад

    Watching in 2021. Big love brad! you work is impacting so many.

  • @BirkinIdk
    @BirkinIdk 7 месяцев назад

    Genuinely great tutorial, many thanks man. Worked flawlessly where other tutorials/guides did not.

    • @BirkinIdk
      @BirkinIdk 7 месяцев назад

      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.

  • @HostDotPromo
    @HostDotPromo 5 лет назад +9

    There is levels to this, docker is awesome once you get the hang of it.

  • @brianperaza4634
    @brianperaza4634 3 года назад +1

    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.

  • @djordjearsenovic
    @djordjearsenovic 5 лет назад +20

    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. :)

    • @casperengelmann4575
      @casperengelmann4575 5 лет назад

      Hopefully with SSR :D

    • @alexandrmartynov5281
      @alexandrmartynov5281 5 лет назад

      what do you mean by whole shop in angular? how headless should work? what does it mean?

    • @djordjearsenovic
      @djordjearsenovic 5 лет назад

      @@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!

    • @simptius
      @simptius 5 лет назад

      Yes please!!

    • @alexandrmartynov5281
      @alexandrmartynov5281 5 лет назад

      thanks. it's clear. headles means it runs from something like amazon lambda and not just some instance/vps right?

  • @andrewkiminhwan
    @andrewkiminhwan 5 лет назад

    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

  • @SimPwear84
    @SimPwear84 4 года назад

    Wow! Simple and straight to the point. This helped me a lot getting setup and understand Docker in my new job. Thanks so much!!

  • @MrJohn-wy2hn
    @MrJohn-wy2hn 5 лет назад +3

    Finally headless WordPress coming. I can't wait.

  • @alirehantirmazi4548
    @alirehantirmazi4548 3 года назад

    Awesome Tutorial Sir! ....Just tested it on GCP it worked like a charm. Thank you.

  • @richardsilva138
    @richardsilva138 2 года назад +1

    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?

  • @petecapecod
    @petecapecod 5 лет назад

    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

  • @jameshagooddesigndevelopme7819
    @jameshagooddesigndevelopme7819 4 года назад

    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

  • @BlurryBit
    @BlurryBit 3 года назад

    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.

  • @dearvivekkumar
    @dearvivekkumar 4 года назад

    Thanks, concise and useful tutorial.
    Will always take a look whenever I want to setup WordPress in docker.

  • @codewithlek9134
    @codewithlek9134 5 лет назад

    Brad just wanna say thank you for delivering amazing content for free, you're my inspiration ( I started my own channel )

  • @KamaleshwarMorjal
    @KamaleshwarMorjal 4 года назад

    Thank you so much for this video. You just unlocked a puzzle in my head so effortlessly. Grateful for this lesson.

  • @ashique12009
    @ashique12009 3 года назад +1

    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.

  • @Flucadetena
    @Flucadetena 4 года назад

    You are a god! after three videos in a row, SUBSCRIBED!!! Great work men! Keep it up!😁

  • @BobDoe_69
    @BobDoe_69 3 года назад

    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)

  • @guacamole456
    @guacamole456 3 года назад

    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?

  • @felixrivera9298
    @felixrivera9298 5 лет назад +3

    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?

  • @owillianmonteiro
    @owillianmonteiro 2 года назад

    Awesome and helpful video, thank you! I appreciate how clear and to the point this was.

  • @metaorior
    @metaorior 5 лет назад

    i love you man you are the only one that give me this kind of opportunity to always learn

  • @StanleyBateswar
    @StanleyBateswar 4 года назад

    Best Docker tutorial easy and fast! Thank you mate

  • @techbizlife
    @techbizlife 4 года назад +2

    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

  • @AbhinavKulshreshtha
    @AbhinavKulshreshtha 5 лет назад

    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.

  • @stephenyork7318
    @stephenyork7318 Год назад

    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

  • @rockinrandalf
    @rockinrandalf 5 лет назад

    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...

  • @kirilllubynets8592
    @kirilllubynets8592 2 года назад

    Thank. It is realy essensial guide about worpress and docker. Thank!

  • @FOGSUser
    @FOGSUser 5 лет назад

    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.

  • @ClevergunsYT
    @ClevergunsYT 5 лет назад +7

    realtalk! this is the best chanel

  • @0gemineyez0
    @0gemineyez0 5 лет назад +1

    Great video, was quick and understandable!!
    Can you do an update on it or with a different video on how to enable SSL?

  • @liyangau
    @liyangau 5 лет назад +1

    Combined with either traefik or nginex as reverse proxy, you can easily deploy as many containers as you like.

  • @cleancodez
    @cleancodez 5 лет назад +7

    Brad please make a video on updates of php 7.3 please I will appreciate.

    • @TraversyMedia
      @TraversyMedia  5 лет назад +14

      Good idea. I want to do a crash course on PHP 7 all together

  • @crocodilecrox3758
    @crocodilecrox3758 5 лет назад

    This got me interested into docker thanks brad!

  • @chandansarkar1123
    @chandansarkar1123 3 года назад

    Thanks a lot. A very concise a great reference for wordpress with Docker.

  • @MichaelMurkovic
    @MichaelMurkovic 3 года назад

    sweet tutorial. love docker compose

  • @tubehelpr
    @tubehelpr 5 лет назад

    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 :)

  • @xuloIsaias
    @xuloIsaias 2 года назад +1

    I ❤ Docker

  • @jaykay5850
    @jaykay5850 3 года назад

    Hey Brad, thanks for this. Keep up the great work.

  • @soccer19957
    @soccer19957 5 лет назад

    Always eager to see your videos every time I see it on my notifications it just makes my day 😍

  • @alexandrmartynov5281
    @alexandrmartynov5281 5 лет назад

    Thank you. Everything works. How to stop docker and start so not to lose data? If i installed software install docker container

  • @chrisjames278
    @chrisjames278 5 лет назад +1

    Will certainly check out that headless WP video 👍🏽👌🏽

  • @TheReverOcelot
    @TheReverOcelot 5 лет назад

    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?

  • @YuriyChamkoriyski
    @YuriyChamkoriyski Год назад

    Thanks for the great tutorial. As everybody said it is straight to the point and it is easy to understand. One question though. After you do $ docker-compose down --volumes, everything from the database is gone. Ame I the only one experiencing this or this is how it is supposed to work? If I do docker-compose up -d again, it starts with a clean DB. All the changes are gone? How can I preserve the DB?

  • @1989arrvind
    @1989arrvind 2 года назад

    Perfect explanation, Thanks for the awesome video👍👍👍

  • @ohmatokito
    @ohmatokito 5 лет назад

    seriously man , u re brilliant

  • @techycompute3636
    @techycompute3636 5 лет назад

    Very Nice clear and easy to understand tutorial as always.

  • @sai_charan
    @sai_charan 5 лет назад +4

    Awesome, waiting for that headless WP video :)

  • @febriantaramuhammad602
    @febriantaramuhammad602 Год назад

    parsing C:\xampp\htdocs\xignature_blog\docker-compose.yaml: yaml: unmarshal errors:
    line 34: mapping key "volumes" already defined at line 7
    line 32: mapping key "networks" already defined at line 15

  • @eugenemusebe4963
    @eugenemusebe4963 5 лет назад

    Thank you brad. I Think this year you should build something using the microservice Architecture. Probably a Udemy course

  • @paulhitchmough
    @paulhitchmough 2 года назад +1

    I'm just working through this and it all works like a dream, but the phpmyadmin password isn't working. It is throwing an error of "mysqli::real_connect(): (HY000/2002): No such file or directory" when I type in the correct username and password ("root", "password") on the localhost.
    Do you have any idea what this could be?
    p.s. I love your channel, your videos, and your brand!

  • @geeksy2278
    @geeksy2278 5 лет назад

    Thanks brad, this was awesome! :) I am finally getting started with docker ❤️

  • @intelxd
    @intelxd 5 лет назад

    when you be the next video available? can't wait to continue this course, which is going great by the way! congrats Brad

  • @36795811
    @36795811 5 лет назад +1

    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.

  • @syednoor-ul-hassanshah8657
    @syednoor-ul-hassanshah8657 4 года назад

    excellent man!!!!! Short and Simple

  • @azazahamed
    @azazahamed 5 лет назад

    My prayers have been answered!!😄 Thank you Brad!

  • @christerjohanzzon
    @christerjohanzzon 3 года назад

    Great stuff, as always! Only issue I have is speed with Wordpress, it is horribly slow on Windows and Docker. It takes 5-10 seconds just to load a page or do anything...even though it sits on a SSD. Is there a setting or something I can do to speed things up? This just does not feel right.

  • @alxrlja
    @alxrlja 4 года назад

    Awesome. all worked perfectly. gave the like and you have a new subscriber.

  • @ronaldmalcolm5609
    @ronaldmalcolm5609 5 лет назад

    Thanks for all of these videos. I do have a question: I'm purchasing your HTML/CSS course on Udemy and I'm taking a WordPress course. Which should I do first? Why?

    • @dmigrishin
      @dmigrishin 5 лет назад

      Do HTML/CSS first, cause for WordPress you will need that. Also you can try to leart them both. But I think you might have a lot of questions, if start with WP first.

  • @lfnkf
    @lfnkf 5 лет назад

    Really good, straight to the point! Thank you!

  • @kokiiito
    @kokiiito 2 года назад

    thanks a lot man!! i'm really into this sre thingy

  • @wallaceeyerland7979
    @wallaceeyerland7979 3 года назад

    Thank you for much for the video. I was able to get wordpress running very quickly. I just have one question. How should we setup nginx to associate domain to that wordpress container?

  • @stephh4392
    @stephh4392 5 лет назад

    COOL!!! 609k subscribers!!!! Congrats!!!

  • @AdegbengaAgoroCrenet
    @AdegbengaAgoroCrenet 5 лет назад

    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

  • @TomBelknapRoc
    @TomBelknapRoc 5 лет назад

    Fantastic tutorial! Do you have one connecting your Docker container to a domain name?

  • @przemyslawgilewski8966
    @przemyslawgilewski8966 5 лет назад

    Nice job! Everything works as expected :)

  • @der9041
    @der9041 2 года назад

    A working solution, thanks.

  • @Stayfly81
    @Stayfly81 5 лет назад

    Very well explained sir thanks for the informative video

  • @lifelong9717
    @lifelong9717 5 лет назад

    Thank you for this tutorial. I got two wordpress sites working on different ports on digital ocean using your tutorial. One is using port 5000 and the other port 8000. How do I go about using custom domains for these two sites. Also how would a static site work, what would I include in the docker-compose file?

  • @varunbhalla19
    @varunbhalla19 5 лет назад

    Hi Brad !
    Please make some intro tuts on Microservices with Node js ?

  • @alcprado
    @alcprado 5 лет назад

    Hi Brad! That's awesome. I'm eager to see you making videos with iOS swift. Any chance?

  • @wasiquehaider4727
    @wasiquehaider4727 5 лет назад +30

    Again first one 😀 i have not waited for my girlfriend's message the way i wait for your videos 😍

  • @josefano
    @josefano 5 лет назад +1

    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 ?

  • @n-o-i-d
    @n-o-i-d 2 месяца назад

    Random reminder for people just starting out learning to self-host wp websites, to change these default passwords to something more complex, involving letters, numbers, uppercase letters and special characters, in case you are going to deploy this to a publicly accessible server. Reason: you don't want hackers gaining access to your server through brute-force attacks. They can do a lot of harm.

  • @nimrodbahar3637
    @nimrodbahar3637 5 лет назад +1

    Would be amazing to see it deployed with a next js frontend

  • @caizer29
    @caizer29 7 месяцев назад +1

    What if I do want to expose the DB ports to my local machine so I can use a tool like dbeaver instead of phpmyadmin?

  • @ben.aka.bigben
    @ben.aka.bigben 5 лет назад

    Awesome tutorial. painless and to the point. Thanks :)

  • @ReuvenEtzion
    @ReuvenEtzion 3 года назад

    This was great. I am still looking for the method for making code changes and pushing to git.

    • @carlosarturogalvangrajales5365
      @carlosarturogalvangrajales5365 3 года назад

      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

  • @jimmiecarlsson
    @jimmiecarlsson 5 лет назад

    Great work Brad! Is there a way install wp-cli in the wordpress container?

  • @Chocoholic1337
    @Chocoholic1337 5 лет назад +3

    Question: I'd love to develop wordpress locally because it's just a lot faster than having to refresh a site that's on another server. I use external themes, like Avada. Is it possible to use this method to develop locally, then once the site has finished - copy / deploy it on a live server?

    • @guidosantillan01
      @guidosantillan01 5 лет назад +2

      That is a really good question. I would like to know this as well.

    • @azazahamed
      @azazahamed 5 лет назад +1

      I've been trying to do the same exact thing for the last couple of hours. Still no luck. My guess is that we would have to mount the database (sql) files along with the wp-content file. Then host it in a GitHub repo along with the docker compose file. And after that, we should be able to clone that repo anywhere and run the docker compose file to set up the service containers. Maybe.

  • @AkisLaoutaris
    @AkisLaoutaris 5 лет назад

    Oh Brad, thank you, thank you, thank you!

  • @LaurenceBahiirwa
    @LaurenceBahiirwa 5 лет назад

    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

  • @eatrejosm
    @eatrejosm 3 года назад

    cool! thanks Brad!

  • @eugenechernyavskiy7541
    @eugenechernyavskiy7541 4 года назад

    Super useful tutorial. Tnx a lot 👍

  • @naderfarahani3135
    @naderfarahani3135 Год назад

    Always usefull! Thank you!