Expose 2 ports on single service
tensorway
HOBBYOP

a year ago

So i want to deploy clickhouse on railway. I need 2 different ports, one for http (8123) and other for TCP (9000).
This is because the nodejs library that i am using is using http and the clickhouse-client is using TCP.

Can I expose both of them somehow?

Btw for the TCP one i am using tcp proxying (some feedback: this was hard to find as I first had to delete the autogenerated domain and then select tcp proxy. Spent like 1 hour searching how to do it)

1 Replies

brody
EMPLOYEE

a year ago

Can I expose both of them somehow?

Publicly -

Natively, No. You would need to do what this template does - https://railway.app/template/_o12zG

That is, expose the TCP port on the service and expose the HTTP port through another service via the private network.

Privately -

Everything is already exposed, think of it as a local network without any firewalls that uses domain names instead of IP addresses.


Loading...