Second Railway-Provided Domain?

michael-watson
PRO

7 days ago

I thought it was possible in the past to have a second railway-provided domain for a service. I have a docker image that starts up two ports, one for an MCP server and the other for a graph router. The MCP server uses the router behind the scene, but I would also like to publicly expose the router if I can.

Do I have to use custom domains to do this? Railway recognizes both of the ports available, I can just only route to one of them currently.

Solved

0 Replies

michael-watson
PRO

7 days ago

Project ID: 3e93983e-9763-4d04-aaea-9bf8a96ae704


michael-watson
PRO

7 days ago

Sorry I was on a flight and just landed


7 days ago

It isn't possible to have two Railway domains for one service. You can have multiple custom domains though


7 days ago

I'm unsure if it's possible to point one domain at one port and a second domain at another.


michael-watson
PRO

7 days ago

@Brody does that yes mean a second domain can point at a second port?


michael-watson
PRO

7 days ago

I also have a healthcheck available, but sounds like a route on the url is preferred to a specific port


7 days ago

Yes


7 days ago

Health checks are done with port 8080 by default, or with whatever port you specify in a PORT variable.


michael-watson
PRO

6 days ago

thank you! I can make that all work, no issues on my end


6 days ago

Sounds good!


6 days ago

!s


Status changed to Solved brody 6 days ago


Second Railway-Provided Domain? - Railway Help Station