Manage multiple hosts #712
-
|
Hi, first of all, thank you for this greate and easy to use tool! My SituationIch have multiple hosts that run different compose stacks. As far as i understood the current concept, the doco-cd.yaml lists the apps to be deployed. Is it possible to have a doco-cd.yaml per host? Or even better, have a yaml attribute called "host" or something? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
If you use webhooks, you can specify a target configuration in the path of the URI: https://github.com/kimdre/doco-cd/wiki/Endpoints#with-custom-target |
Beta Was this translation helpful? Give feedback.
-
|
Hey, thanks for the answer, I have another question about the same subject. If I understand correctly, for multiple targets (multiple server), I have to (if I want to use Webhook):
So I will have to open X ports on my network (one per service)? |
Beta Was this translation helpful? Give feedback.
You can write multiple
.doco-cd.<host>.yamlfiles for each of your hosts and reference your compose projects in them. Then you just specify that.doco-cd.<host>.yamlfile in the webhook url to or poll config of the doco-cd instance of your host.