Can I deploy railway services based on infrastructure as code
nnoujaim
PROOP

a year ago

Im trying to set up a multi tenant system for my application and i want to be able to deploy a new DB instance with a sub domain (like "client1Database.mydomain.com", then later deploy "client2Database.mydomain.com) with some setup etc by adding a section to a configuration file, like how you would do in kubernetes / helm chart.

Been looking around and cant seem to get an answer on this... does railway support something like this? could i achieve it via github actions in conjunction with railway? should i set up a railway service that hosts kubernetes and have it somehow spin up and configure this?

Im imagining a scenario where i onboard lots of clients, and it would be poor for scaling and error prone to have to use the UI to point and click my way to a successful multi tenant architecture in that world. Any help would be appreciated, thanks

Solved

3 Replies

a year ago

Hello,

This is something you would want to use the API for, here is an example code that does what I think you want to do, don't know if you use Python but regardless it shows you what needs to be done -

https://github.com/brody192/railway_project_create

The source of truth would be a template -

https://docs.railway.com/reference/templates

Hope this helps!

Best,
Brody


Status changed to Awaiting User Response Railway about 1 year ago


nnoujaim
PROOP

a year ago

Okay I think this answers my question, thanks


Status changed to Awaiting Railway Response Railway about 1 year ago


a year ago

Awsome!

I'll mark this as solved, but feel free to re-open if you have further questions!


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved brody about 1 year ago


Loading...