Docker: There’s something not clear to me which I would like help with

[ad_1]

So I’ve been researching alternatives to Local by Flywheel for local WordPress development, as Local has become excruciatingly slow and resource hungry, and Docker keeps on popping up and it really seems great.

I’ve looked at a couple of tutorials and it doesn’t seem too bad at all, but there’s one thing not very clear to me:

Every tutorial I’ve seen ends up opening the WordPress site on localhost:8000 or something. What I don’t understand is: do I have to use a different port for every WordPress site I make? Or can I simply do what I do with Express/Node apps, where I simply fire up the server on 3000 every time and when I want to switch site I stop the server, CD in to another directory and nodemon the next one?

Any help would be greatly appreciated!

[ad_2]
1 Comment
  1. Only one container can use a port at a time so you can either assign different ports to different containers, or only run one container that uses your preferred port and stop it when you’re done.

    You can also use something like Nginx proxy manager if you want to assign domain names or subdomains to several containers.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer