Challenge deploying different services from a mono repo
rootmateo
PROOP

a year ago

This is my first time trying to run multiple services from 1 repo on railway. (It's pretty straight forward when there's 1 docker file per repo).

My repo has a services/ directory with multiple services. Each has a dockerfile.

I'm not sure how to best go about deploying this on railway.

20 Replies

rootmateo
PROOP

a year ago

92c5e847-f796-4ffc-b29f-0c2a9bc86322


a year ago

is there anything not answered by these two doc's pages?


rootmateo
PROOP

a year ago

So these were fantastic resources. I followed them and have my 'service' created but I don't know how to point it to the Dockerfile


a year ago

have you set the root directory?


rootmateo
PROOP

a year ago

Yes I set it as the root of the project (default) because that is where the lib/ folder is which is used in building the docker container.


rootmateo
PROOP

a year ago

as shown here I believe


rootmateo
PROOP

a year ago

Each service uses the lib/ and jasper/ directory.


a year ago

ah then that's a shared monorepo


rootmateo
PROOP

a year ago

Yessir!


rootmateo
PROOP

a year ago

Again thank you so much for your help man. I don't understand how you guys become so knowledeable in this space 😄


a year ago

please see this docs section then -


a year ago

for me, I've gained this knowledge just by helping


rootmateo
PROOP

a year ago

Incredible. Let me quickly give that a shot, looks exactly what I need


rootmateo
PROOP

a year ago

Everything's up and running. Thx boss!


rootmateo
PROOP

a year ago

Hey @Brody Might I ask 1 more quick question?


rootmateo
PROOP

a year ago

How comfortable should I feel, or rather, would you recommend sensitive keys (like API keys, etc) be passed into the docker container via the variables section?


rootmateo
PROOP

a year ago

I notice that there is a way to SEAL these variables however I noticed that there was a bug when done this way, where the variables (only the SEALED ones) aren't available to the container.


a year ago

there shouldn't be that kind of bug, but if you are the only one who has access to the project you have zero reason to seal the variables


rootmateo
PROOP

a year ago

Gotcha thank you! How can I close out this ticket 🙂 Your help's been greatly appreciated!


a year ago

we dont close, we just do that! 🙂


Loading...