R
Railway•2y 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•2y ago
Project ID: b6e0630a-d349-4ebf-b98f-44c205a8b3c6
wenish
wenishOP•2y ago
b6e0630a-d349-4ebf-b98f-44c205a8b3c6
Brody
Brody•2y ago
in the config.conf file listen on 8080, and in the service variables set PORT = 8080
wenish
wenishOP•2y ago
what config.conf file?
Brody
Brody•2y ago
it's listed in your dockerfile? nginx.conf sorry, typo
wenish
wenishOP•2y 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
wenishOP•2y ago
cached there is nearly no diffrence
wenish
wenishOP•2y ago
only the 100ms ping to na
Brody
Brody•2y ago
well then youll be happy to know multi region is comming! no eta though
wenish
wenishOP•2y ago
what you mean with eta?
Brody
Brody•2y ago
eta is an acronym for estimated time of arrival
wenish
wenishOP•2y 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•2y ago
yep good things to come with railway for sure
Want results from more Discord servers?
Add your server