I am using docker desktop for Mac, I recently faced an issue, where when I started docker desktop my local development front-end web server stopped working as my webpack configuration had a port defined for the local assets 3333, and when checked the processes docker was also using 3333 port
After investigating and reading this post, I found that an extension was using the same port, I went to their website to check if there was some solution but the website was down so I installed it as I didnât need that.
My question is, Is there a way to change the port an extensionâs containers use?
I donât think so. Maybe if you can find the folder where it stores its settings, assuming it has the port number in a config file. But I havenât heard about a supported feature to change ports. I have to say that I donât use many extensions, so it is not impossible that I just donât know about it. I guess the extension developer could provide a setting through itâs own GUI, store the port and restart.
Thanks @rimelek for the suggestion, this really helped me, after some head-banging and some hits and tries I was able to achieve this using two different approaches, the one you mentioned about modifying the config is the recommended one I had to modify the docker-compose file of the extension.