docker-hook
docker-hook copied to clipboard
Possible to have several docker-hook listning?
Hello,
When looking at the docs, it seems it's only possible to consume one web hook.
I have several projects on docker hub, that should deploy. The correct solution would be to have docker-hook to listning on different ports for the different projects ?
Hi @Tazer. I think with the current implementation of this project that seems like a good workaround.
+1
Any thought to creating a server-wide/multi-service configuration file (like a docker-compose.yml file) that can be used to setup the various containers that should be updated with docker-hook? Then if each project needs a separate port, etc it can all be defined in one place (i.e. docker-hook.yml)?
Actually, I realized that a better solution might be to let docker-hook monitor a single port and let the command script that is called handle the various projects specific detail by making the payload available to the command script.
Then the command script can be written to do whatever it needs to do based on the payload details and it can also be written in any language the implementer prefers.
there is a --port
command. This issue can be closed, I think
https://github.com/schickling/docker-hook/blob/64d2794bdb322c1a06648bc18728773cf0b43ad3/docker-hook#L92
One great way will be to add query parameters in the url depending on which we can update the specific app
For anybody interested, I have created Hook CMD which is written in Typescript and allows for multiple webhook endpoints and commands to be defined in a JSON config file.