docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Controling 80 and 443 ports on linux

Open vhdmoradi opened this issue 11 months ago • 0 comments

So, I have a question regarding ports, not sure if I need to open a new issue. I am on linux and the ports 80 and 443 are already in use most of the time, and I do not understand quite well, but sometimes services like gnome shell are using these ports. So, my first problem occurs when I try to just kill the processes using these ports (which I am not 100% sure is the best way); usually when I close some unimportant service using these ports (like telegram or so), it makes the port available. But when gnome shell is using it, killing the service is not right. My main question is, is there a way to config the docker-magento to use other ports rather than 80 and 443? maybe in the docker-compose file? I tried in the compose file, changing here:

app:
    image: markoshust/magento-nginx:1.18-8
    ports:
      - "81:8000"
      - "444:8443"

But after getting the containers up, magento.test does not open the website. Screenshot from 2024-02-27 14-30-40 If not, how can I open these ports without killing services like gnome-shell?

vhdmoradi avatar Feb 27 '24 11:02 vhdmoradi