I’m new to development and Docker so I apologise if this question is really basic. I looked through past topics and couldn’t find anything answering this specific question.
I need to set up multiple containers on localhost in order to be able to work on several clients’ WordPress projects at the same time. The docker-compose.yml file I use contains the below instructions, which work to create one localhost WordPress site on http://localhost:8000/, but if I try to create another installation, changing the port to any other number, e.g. “8001:80”, in the docker-compose.yml file, nothing appears on http://localhost:8001/.
Is it because I need to expose the new port? How can that be done in this docker-compose.yml file? Do I need to change the db host number as well? I’m sure this will seem obvious to most of you but I would really appreciate you pointing me in the right direction. Thanks so much.