Mongo 6 - Service + Volume

I am about to deploy an app to Railway that uses Mongo 6. The build-in version that Railway provides is 4.4. I have tried to create a Service (using mongo 6.x official image) + Volume but when I try to link the DB with the app service, I always get mongodb connection timeout. I also attempted to do it via a mongo client, but failed as well. I used a connection string like this: mongodb://USER:PASSWORD@HOST.up.railway.app:27017 What am I doing wrong? Project Id: 3cdba747-364e-4315-8788-5bcc6a5c6a8c
2 Replies
Percy
Percy11mo ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Brody
Brody11mo ago
railway doesn't support proxying TCP connections externally, you would only be able to connect to it from within the private network using the private domain