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
Solution:
set a PORT service variable to 8080
Jump to solution
6 Replies
Percy
Percy11mo ago
Project ID: N/A
Solution
Brody
Brody11mo ago
set a PORT service variable to 8080
luckylukeSVK
luckylukeSVKOP11mo ago
@Brody do you mean server.port=8080 or something else ?
Brody
Brody11mo ago
nope, a service variable
luckylukeSVK
luckylukeSVKOP11mo ago
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
Brody
Brody11mo ago
it is in railway's docs haha
Want results from more Discord servers?
Add your server