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