Is there a way to reference a container from another container deployed through kamal? #731
AlexHashgraph
started this conversation in
General
Replies: 1 comment 6 replies
-
@AlexHashgraph You'll want to take a look at Docker networks. You can have your containers join the network and then you can use named hosts to communicate between them. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If i have two services both deployed on the same machine through kamal, is there a way to have a request between the containers?
I noticed that both the name and hostname of the container are generated at build time and couldn't find any way to affect this behaviour. Beside these options, the only way left to reference another container is through the container ip, but that is ephemeral too.
Any help is appreciated, thanks
Beta Was this translation helpful? Give feedback.
All reactions