2 years ago
Hey, I want to run code-server, and my project in the same container for development. They are running on different ports. If I understand well, I can't expose multiple ports, so I tried https://coder.com/docs/code-server/guide#using-your-own-proxy making my own domain 4000.my-domain.com, but I can reach only the code-server.I need my page to be on it's own domain, because of my relative path usage. How could I achieve developing in the cloud? Is Railway good for this use case?
4 Replies
2 years ago
If I could use mydomain.com:4000, that would work aswell.
2 years ago
You should be able to use the private network for this
https://docs.railway.app/reference/private-networking
2 years ago
Could you elaborate please? Sorry I don't really understand how a private network would help me. I have a container, I have two ports exposed, 4000 and 8080. I want somehow to be able to reach one for writing the code, and one to run my project. Port 4000 can be reached from domain.com/proxy/4000, routing that to another public domain could also work. Private networks may work, but I really don't get how. Thanks for your patience!
2 years ago
You would spin up the containers in the same project, and then from the code server one you'd just dial myservice.railway.internal:4000 or w/e and it would connect
Status changed to Solved Railway • over 1 year ago