R
Railway•15mo ago
wenish

docker nginx port forwarding

so i built and deployt an nginx dockerfile on railway this one: https://github.com/Wenish/vland-portal/blob/main/Dockerfile everything works fine for building and deploy stage when i open the url https://vland-portal-production.up.railway.app/ the request dosnt get forwarded to the docker instance. localy i can start docker image like docker run -dp 80:80 how do i configure railway that it maps the ports?
13 Replies
Percy
Percy•15mo ago
Project ID: b6e0630a-d349-4ebf-b98f-44c205a8b3c6
wenish
wenish•15mo ago
b6e0630a-d349-4ebf-b98f-44c205a8b3c6
Brody
Brody•15mo ago
in the config.conf file listen on 8080, and in the service variables set PORT = 8080
wenish
wenish•15mo ago
what config.conf file?
Brody
Brody•15mo ago
it's listed in your dockerfile? nginx.conf sorry, typo
wenish
wenish•15mo ago
im from eu. so the ping to na servers are obiously some bottle neck. so consider that the performance for initial loading without cache is i guess okey. its firebase hosting vs railway
wenish
wenish•15mo ago
cached there is nearly no diffrence
wenish
wenish•15mo ago
only the 100ms ping to na
Brody
Brody•15mo ago
well then youll be happy to know multi region is comming! no eta though
wenish
wenish•15mo ago
what you mean with eta?
Brody
Brody•15mo ago
eta is an acronym for estimated time of arrival
wenish
wenish•15mo ago
yeah those i will defenitly use for the realtime game servers. but im in development phase. so some little bit mor latency is even good so i kinda already can look that the game feels good with bad ping. so then when there is good ping its even better 😄
Brody
Brody•15mo ago
yep good things to come with railway for sure