rakib
rakibrayhan253-max
HOBBYOP

a month ago

Title: Nginx frontend "Application failed to respond" - Port binding issue

Hello Railway Team,

I am deploying a frontend using an Nginx Docker container. My site (rakibai.com) keeps showing the purple "Application failed to respond" error.

The Railway dashboard shows the service as "Online" (Green), and the deploy logs show Nginx starting successfully without any errors. However, the Railway ingress router cannot reach it.

I know Nginx is likely ignoring the dynamic $PORT variable and falling back to port 80. I have tried using envsubst and sed in my docker-entrypoint.sh to inject the Railway $PORT into nginx.conf, but the router still cannot connect.

Could an engineer or community expert please provide the exact, bulletproof Dockerfile and nginx.conf.template required to properly bind Nginx to Railway's dynamic $PORT?

Service Name: maya-frontend

Domain: rakibai.com

Thank you!

Under Review

0 Threads mention this feature

0 Replies

Welcome!

Sign in to your Railway account to join the conversation.

Loading...