R
Railwayβ€’2mo ago
will_matthew

Challenge deploying different services from a mono repo

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.
No description
No description
14 Replies
Percy
Percyβ€’2mo ago
Project ID: 92c5e847-f796-4ffc-b29f-0c2a9bc86322
will_matthew
will_matthewOPβ€’2mo ago
92c5e847-f796-4ffc-b29f-0c2a9bc86322
Brody
Brodyβ€’2mo ago
will_matthew
will_matthewOPβ€’2mo 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
Brody
Brodyβ€’2mo ago
have you set the root directory?
will_matthew
will_matthewOPβ€’2mo 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. as shown here I believe Each service uses the lib/ and jasper/ directory.
Brody
Brodyβ€’2mo ago
ah then that's a shared monorepo
will_matthew
will_matthewOPβ€’2mo ago
Yessir! Again thank you so much for your help man. I don't understand how you guys become so knowledeable in this space πŸ˜„
Solution
Brody
Brodyβ€’2mo ago
Brody
Brodyβ€’2mo ago
for me, I've gained this knowledge just by helping
will_matthew
will_matthewOPβ€’2mo ago
Incredible. Let me quickly give that a shot, looks exactly what I need Everything's up and running. Thx boss! Hey @Brody Might I ask 1 more quick question? 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? 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.
Brody
Brodyβ€’2mo 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
will_matthew
will_matthewOPβ€’2mo ago
Gotcha thank you! How can I close out this ticket πŸ™‚ Your help's been greatly appreciated!
Brody
Brodyβ€’2mo ago
we dont close, we just do that! πŸ™‚
Want results from more Discord servers?
Add your server