Quick Wordpress Setup With Docker

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

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

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

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

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

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

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

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

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

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

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

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

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

      Have you all tried wordmove? Works quite well.

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

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

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

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

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

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

    Finally headless WordPress coming. I can't wait.

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

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

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

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

      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.

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

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

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

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

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

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

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

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

    realtalk! this is the best chanel

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

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

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

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

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

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

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

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

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

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

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

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

  • @caizer29
    @caizer29 8 месяцев назад +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?

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

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

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

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

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

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

    Best Docker tutorial easy and fast! Thank you mate

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

    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.

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

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

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

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

  • @coralinpableo9347
    @coralinpableo9347 День назад

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

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

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

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

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

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

    This got me interested into docker thanks brad!

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

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

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

  • @Photo-Ninja
    @Photo-Ninja Год назад

    Thanks! Do you know how to use docker with existing installation that I have hooked to "local by flywheel" software? Because this setup is focused on fresh installation I guess. Thanks so much

  • @НиколайКостов-д7я
    @НиколайКостов-д7я 3 года назад

    Okay my dude, I just pulled that one up, but I can not seem to figure out the following --> What is meant by volume ['./:/var/www/html'] how did you share that one across the container and the host??? How could I possibly declare one like of such consistency for apache2 ???

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

    seriously man , u re brilliant

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

    Still not clear for me about docker on some point just new with it, okay in case if I want to install another wordpress application and in same time I want to run them together?, in case I wanted to down on of them also how?
    Thanks for video it's perfect

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

    I had a database connection error on the frontend until I updated the database credentials in the wp-config.php file. I'm wondering why you were able to access without doing that. I also notice a wp-config-docker.php. The WordPress Docker Hub page doesn't seem to mention this other docker-specific config file.

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

    Just wondering why you added the volume to the Wordpress container?

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

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

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

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

    Awesome, waiting for that headless WP video :)

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

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

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

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

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

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

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

    sweet tutorial. love docker compose

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

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

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

    Hello, how can I manage the upload files and permissions that will be generated inside a production server?

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

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

    Maybe i am too late, but how can i install HTTPS/SSL certificate for docker wordpress container? I legit tried more than 10 ways (nginx configuration, digibot cert, loadbalancer on aws, inside docker container, etc, etc) and i couldnt do it.
    Any hint, answer or at least path to what should i research would be much appreciated....tnx.

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

    great video! i tried a few diferent aproaches to use wordpress, and still have the problem with the slow 5-7 seconds to load a new installation of wordpress, any1 has found the issue or the solution to this?

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

    why when I press Docker-compose up -d , it says can't find a suitable configuration file in this directory or any parent: not found

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

    I just did the docker-compose.yaml. Executing: docker-compose up -d in terminal on a mac I get this error message: Top level object in './docker-compose.yaml' needs to be an object not ''. Any solutions ?

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

    This video is great but how do I create an image from the container and push it to docker hub. I am looking for the structure of the Dockerfile for a Wordpress container.

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

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

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

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

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

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

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

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

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

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

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

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

    Hi Brad, the files are not showing up for me. Any means how to fix this? Can't find ANYTHING about this on StackOverflow.

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

    I did this but why didn't I get wordpress and it opened to php admin instead, which I cannot log in anyway? Or is it because this is my second time to do this with docker? First time and it workrd for me, I used localhost 8080 but for this I did 8181, so does it mean that if i set up wordpress with docker before, I can no longer get WP locally using another route?

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

    I ❤ Docker

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

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

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

    I am still at the beginning of using Docker so I am having a hard time managing a mysql connection with a local mysql client like Heidi. I followed the docker tutorial where installing MySQL allowed a connection from my computer to localhost:3306. In this case id does not work.

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

    how do you setup permissions to change file in the wp volumes? It appears i don't have permission on the host to make any changes. If i sudo i would probably break the permissions for the container right?

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

      Did you find any solution on this permission problem in linux.

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

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

    Very Nice clear and easy to understand tutorial as always.

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

    i setup nginx with ssl and reverse proxy to my deployed wordpress on certain port. Can you help me adjusting the config so the wordpress run well? The css is not loading

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

    All installed but if I want to update WP it's asking me for my hostname and connection type. What do I enter?

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

    Perfect explanation, Thanks for the awesome video👍👍👍

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

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

  • @DavidMorales-qv7jf
    @DavidMorales-qv7jf 5 лет назад

    Can I deploy WordPress from Docker to Digital Ocean or other Cloud Service?

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

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

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

    Is it possible to install docker on Windows Home Edition on laptop? Or only over Vagrant? how to use docker over Vagrant then

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

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

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

    Running windows 10 :1809, I had to download docker toolbox and was able to get to docker-compose up -d and I did not receive creating network or creating volume. From what it seemed like the files downloaded and when I go to port 8000, I receive an unable to connect. I have researched the docks and am not sure why I am getthing this problem. Any help would be appreciated, also Brad, if possible can you please a quick toss up of a windows version.

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

      So I launched docker quickstart terminal and it mapped and IP, which I used instead of localhost with 8000 and that worked. I need to read more about this because I am not sure what is going on, but it is working...I think lol