Is it possible to deploy few services from single repo with toml file?

In Railway documentation i see only examples with single service creation in .toml. So was wondering if it is possible to deploy two services with separate docker files from one repository using github repo deploy? Or maybe it is possible to define few toml files in single repo?
8 Replies
Percy
Percy2mo ago
Project ID: N/A
Diamond32
Diamond32OP2mo ago
N/A
Brody
Brody2mo ago
what kind of two services? isolated or shared monorepo?
Diamond32
Diamond32OP2mo ago
shared monorepo basicly one asp.net api and console app for cron jobs
Brody
Brody2mo ago
what are each Dockerfile names?
Diamond32
Diamond32OP2mo ago
I have it like this at the moment: solution - main-api - Dockerfile - console-app - Dockerfile - railway.toml and in toml i provide the path to dockerfile
[build]
builder = "dockerfile"
dockerfilePath = "./AccountingApp.Application/Dockerfile"
[build]
builder = "dockerfile"
dockerfilePath = "./AccountingApp.Application/Dockerfile"
everything works fine with single project but not sure if it would be possible to add second dockerfile path so it would build two services instead of one
Brody
Brody2mo ago
okay so you will need two railway services that deploy from the same repo, and then in each service you will set a RAILWAY_DOCKERFILE_PATH variable, no .toml config needed.
Diamond32
Diamond32OP2mo ago
thanks, it worked also found, that it was possible define toml path, that allows me to have separate config as code for each service
Want results from more Discord servers?
Add your server