Incorrect hostname with private networking

I've set mongo-2.railway.internal (or mongo-2) as the endpoint name for private networking on the UI, however, upon running hostname returns railway

Service ID: 46c01986-5e99-4fd6-a662-f79de7b4dd67
Deployment ID: 1732be1e-b0c3-443f-a7cc-de8808e6cf43
totally normal, you want to read from RAILWAY_PRIVATE_DOMAIN
mongo relies on hostname to initiate replica setup.
ah okay you didn't say it needed to be HOSTNAME
just set a variable HOSTNAME=${{RAILWAY_PRIVATE_DOMAIN}}

Looking for more? Join the community!

Recommended Posts
Do I need to configure anything in the Docker Image to support TCP proxy?For some reason I can't use the TCP proxy in the Minecraft Server template, I get "connection reset"Cron JobsHey everyone. I'm moving from Vercel to Railway so this is my first Railway project. I'm trying to iHow to connect FastAPI with Planetscale (mysqlclient error)Hey, how are you guys doing? I have a backend on Railway who is running with FastAPI (using this teHobby PlanI have a Discord bot which needs to be hosted, I had it hosted on railway before the recent pricing AttributeError: 'DatabaseWrapper' object has no attribute 'set_schema'I'm using django with mutlitenants using the package django-tenants==3.5.0 When i deployed the app tHosting errori am hosting my discord bot written in python using nextcord library and when i deploy it then it shDeploy angular applicationerror: ```2 minutes ago via GitHub Init main View Logs Removed Deployed 3 minutes ago vimongo on railwayI am trying to get mongo v7 up and running on railway. When using default options, I am getting follTCP Proxy timeoutI'm trying to start a Redis server with the official Docker image from Docker Hub with #TCP + LogginHow to move from Working Localhost w/ Django Websockets to Railway production?I had a functioning django websocket fantasy draft on my local host using daphne and redis. However,There's suddenly two new random columns in my database??I went in and checked my railway dashboard and to my surprise there's two new completely random dataRailway having issues with Mongoose NPM package???Locally my code works fine, I can connect to Mongo using Mongoose no issues but when on Railway it r