I created a sample web-app in Java (with using Gradle and SpringBoot) and then dockerized it with Jib. In my build.gradle file there is a row : "ports = ['9090']" because I want to see web-app on this port. And in my application.properties file there is a row : "server.port=9090".
Docker Image succesfully created. But when I run this image I couldn't see results of its working. If I run jar file everything is OK. Web-app works on 9090 port.
I want to see my web-app working, when I execute command docker run . How can I change the port of the image or of anything else ( NettyWebServer properties ) to see the running image on that port what I want ? Can you help me with this issue please ? Thank You.