Share database between multiple kamal applications though accessories or another method ? #1085
Unanswered
rogerheykoop
asked this question in
Q&A
Replies: 1 comment 2 replies
-
My understanding is that you’ll need to have the same network name to be able to connect from both apps |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am de-clouding a bunch of existing Rails applications. These used to run on AWS ECS, and they used to connect to an RDS database server.
For that goal I've got a new dedicated server.
Suppose I have two separate Rails applications A and B, each will be deployed to that same new server using Kamal 2.
If I add a MySQL service as an accessory to A, and I name its service 'shared-mysql' for instance, then I'm not able to add the same containerized MySQL service to B as 'shared-mysql', or am I mistaken ?
What would be the best way to approach this in a Kamal 2 based setup ?
Add MySQL as a native service on the dedicated server and connect to it from the containers ? Or is there another way ?
Beta Was this translation helpful? Give feedback.
All reactions