17 days ago
I’m facing a bizarre issue: everything works as expected locally, but when I deploy the Docker container on Railway, the deployment completes successfully with no errors — however, the website becomes inaccessible and returns a 502 error.
Image used:
FROM node:20-slim AS baseImage that works:
FROM node:20-alpine AS baseSucess deploy in both:
Please help
3 Replies
17 days ago
Hey there! We've found the following might help you get unblocked faster:
🧵 Railway ignoring Node 20 configuration (Nixpacks using Node 18) → causing repeated 502 failures
🧵 BUILD ERROR: failed to fetch oauth token for [docker.io](docker.io)
If you find the answer from one of these, please let us know by solving the thread!
17 days ago
Hy @prazeres-rafael, add this line in the runner stage of your slim Dockerfile (right before CMD or USER):
ENV HOSTNAME=0.0.0.0
and redeploy.
Status changed to Solved brody • 17 days ago
