docker-hook icon indicating copy to clipboard operation
docker-hook copied to clipboard

Possible to have several docker-hook listning?

Open Tazer opened this issue 8 years ago • 6 comments

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 ?

Tazer avatar Jun 23 '16 09:06 Tazer

Hi @Tazer. I think with the current implementation of this project that seems like a good workaround.

schickling avatar Jun 23 '16 10:06 schickling

+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)?

patakijv avatar Oct 10 '16 22:10 patakijv

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.

patakijv avatar Oct 11 '16 18:10 patakijv

there is a --port command. This issue can be closed, I think

https://github.com/schickling/docker-hook/blob/64d2794bdb322c1a06648bc18728773cf0b43ad3/docker-hook#L92

bjuergens avatar Mar 30 '19 21:03 bjuergens

One great way will be to add query parameters in the url depending on which we can update the specific app

all2pie avatar Sep 18 '20 13:09 all2pie

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.

wworrall avatar Mar 24 '22 18:03 wworrall