Quick Wordpress Setup With Docker

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

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

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

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

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

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

    • @elliotmorris4576
      @elliotmorris4576 6 лет назад +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 6 лет назад

      @@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 6 лет назад +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 Год назад +6

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

  • @clivenoonan4016
    @clivenoonan4016 6 лет назад +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 6 лет назад +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 6 лет назад +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 5 лет назад

      @@rigohohn6123 Anyone figured this out?

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

      Have you all tried wordmove? Works quite well.

  • @adamgulyas4076
    @adamgulyas4076 5 лет назад +10

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

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

  • @ajcics
    @ajcics 6 лет назад +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.

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

    calm yet dense explaining. never had the urge to skip or fast forward.
    just perfect, 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

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

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

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

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

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

  • @djordjearsenovic
    @djordjearsenovic 6 лет назад +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 6 лет назад

      Hopefully with SSR :D

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

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

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

      @@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 6 лет назад

      Yes please!!

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

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

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

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

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

      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 6 лет назад +9

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

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

  • @brianperaza4634
    @brianperaza4634 4 года назад +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.

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

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

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

    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

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

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

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

    Finally headless WordPress coming. I can't wait.

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

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

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

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

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

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

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

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

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

    realtalk! this is the best chanel

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

    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

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

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

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

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

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

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

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

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

    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

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

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

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

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

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

    This got me interested into docker thanks brad!

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

    Best Docker tutorial easy and fast! Thank you mate

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

    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.

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

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

  • @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?

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

    seriously man , u re brilliant

  • @coralinpableo9347
    @coralinpableo9347 Месяц назад

    OMG thank you. Im gonna try it out. I keep installing XAMP in my mac but it work.

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

    sweet tutorial. love docker compose

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

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

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

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

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

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

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

    Awesome, waiting for that headless WP video :)

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

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

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

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

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

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

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

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

    Very Nice clear and easy to understand tutorial as always.

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

    Perfect explanation, Thanks for the awesome video👍👍👍

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

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

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

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

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

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

  • @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?

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

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

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

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

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

    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?

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

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

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

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

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

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

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

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

  • @syednoor-ul-hassanshah8657
    @syednoor-ul-hassanshah8657 5 лет назад

    excellent man!!!!! Short and Simple

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

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

    Nice job! Everything works as expected :)

  • @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?

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

    Really good, straight to the point! Thank you!

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

    A working solution, thanks.

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

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

  • @yppiplay7348
    @yppiplay7348 8 дней назад

    Realy helped, thanks!

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

    Very well explained sir thanks for the informative video

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

    Thanks brad! you're always a life saver. =)

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

    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

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

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

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

    Super useful tutorial. Tnx a lot 👍

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

    Always usefull! Thank you!

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

    This is great thank you!

  • @sharana2496
    @sharana2496 6 лет назад

    Loving these videos🎊🎉

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

    Bro ilove this tutorial thanks for this!!!

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

    cool! thanks Brad!

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

    This really helped, thanks a lot

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

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

  • @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 ?

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

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

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

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

  • @lamstechgaming1899
    @lamstechgaming1899 6 лет назад

    Muchas gracias Brad! Como siempre gracias por el contenido 😄. #Notificationsquad

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

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

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

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

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

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

    thanks for the help!

  • @nistaspec
    @nistaspec 6 лет назад +1

    I'd like to see a tutorial for WP backend and React frontend :)

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

    Awesome thank you so much !

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

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

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

    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?

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