Java spring app from docker hub image . canot connect to it from internet
Hi, I did first time deployed java spring app from docker image from docker hub. Before i deployet app via github source code and everything was good. Now i have problem, I see in deployment logs that tomcat and app is running on port 8080, but i cannot connect to app via provided railway link. should I somehow inter-connect the ports of image's container with ports of railway enviroment ? Thanks
6 Replies
Project ID:
N/A
Solution
set a PORT service variable to 8080
@Brody do you mean server.port=8080 or something else ?
nope, a service variable
so the name of var is PORT ? ok i undestand
@Brody great it works. i am suprised that neither google or AI didnt give me rigth answer, Thank you very much
it is in railway's docs haha