2 years ago
Hello everyone. I'm currently developing a bot for Telegram and since I'm kinda new on this whole deployment flow, I am not sure if I understand certain things correctly. Basically I want a bot (NodeJS with GrammY) to use a MongoDB (or PostgreSQL) database. And also I would need two websites (they both will play a role of some sort of admin panel) to have access to that same database instance. Is that possible? I'll be glad to hear your advice, any links where I can read more on that stuff also
1 Replies
2 years ago
That's all very possible, to make it work seamlessly you would need to deploy all the mentioned services and databases into the same project so that the services that need to talk to the database can do so over the private network.
Give these docs pages a read
https://docs.railway.app/reference/services
https://docs.railway.app/guides/private-networking
https://docs.railway.app/guides/variables#referencing-another-services-variable