I have an Azure Ubuntu 18.04 server. On the server I installed Docker and Jenkins. I want to access Jenkins from my local machine via port 8080. However, I cannot access Jenkins with the public IP address. For this reason I installed NGINX to forward the request.
My current setup looks as follows:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
130a16aa29c4 jenkinsci/blueocean "/sbin/tini -- /usr/…" 5 hours ago Up 2 seconds 0.0.0.0:8080->8080/tcp, 0.0.0.0:50000->50000/tcp jenkins-blueocean
177e47ae908f docker:dind "dockerd-entrypoint.…" 5 hours ago Up 15 seconds 2375/tcp, 0.0.0.0:2376->2376/tcp jenkins-docker
1fa2d5ea5e53 nginx "/docker-entrypoint.…" 5 hours ago Up 36 seconds 0.0.0.0:80->80/tcp mynginx1
What needs to be done to access Jenkins from my local machine?