-
Hi there, What's the best way to reference accessories? As far as I understand it, the only option to reference an accessory is by its internal, docker-based ip address. That isn't ideal for a lot of reasons. Does (or could) kamal create a bridge network so that running containers can reference accessories by their container name? Or am I not understanding something? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@gammons This can be achieved if you run the web app and accessory on the same server, create a docker network on the server, then define the network on create a network on the server set server and accessory network config
|
Beta Was this translation helpful? Give feedback.
-
As an alternative to setting up a docker network, you could also use the service param in the accessory definition
Assuming that this accessory is on the same host as the main "web" application, assigning the string (if you omit the |
Beta Was this translation helpful? Give feedback.
@gammons This can be achieved if you run the web app and accessory on the same server, create a docker network on the server, then define the network on
deploy.yml
create a network on the server
docker network create -d bridge private
set server and accessory network config