docker-ubuntu-vnc-desktop
docker-ubuntu-vnc-desktop copied to clipboard
Change nginx port ?
There is a possibility to change the listening port of the nginx server?
Use case: Another web server running with default port 80/443
Thanks!!!
Hi,
the service runs on port 80 within the docker container. Simply map the port on your local computer to a different port, like 6080 in the example:
docker run -p 6080:80 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
Now you can continue to use port 80 on your local computer.
Hi, the service runs on port 80 within the docker container. Simply map the port on your local computer to a different port, like 6080 in the example:
docker run -p 6080:80 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
Now you can continue to use port 80 on your local computer.
The "custom" web-server is running within the same docker container.
So the idea is to use the port 80 & 443 for the web-server and another one for nginx.
Hi, the service runs on port 80 within the docker container. Simply map the port on your local computer to a different port, like 6080 in the example:
docker run -p 6080:80 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
Now you can continue to use port 80 on your local computer.
Thanks for your help!
@carlocorradini Re-opened by accident?
@carlocorradini Re-opened by accident?
Closed by accident, sorry
Can you try to modify your nginx config file in your docker file? https://ubiq.co/tech-blog/change-nginx-port-number-ubuntu/
Can you try to modify your nginx config file in your docker file? https://ubiq.co/tech-blog/change-nginx-port-number-ubuntu/
Yep, but what do you think if we can mofidy it directly with an ARG (maybe)?
@carlocorradini Did some research, doesn't seem possible by default. But you could take in parameter and put it in config before starting nginx.
@carlocorradini Did some research, doesn't seem possible by default. But you could take in parameter and put it in config before starting nginx.
So using: https://ubiq.co/tech-blog/change-nginx-port-number-ubuntu/
Is the only way (currently) to change the nginx configuration?
Thanks for your help!