Sign inSign up

obermotz/webhook-om

By obermotz

•Updated 4 months ago

Dockerized version of webhook (https://github.com/adnanh/webhook) based on docker-cli.

Image
Integration & delivery
Developer tools
Web servers
0

1.7K

obermotz/webhook-om repository overview

⁠Dockerized webhook

This repository contains an up-to-date version of the dockerized version⁠ of the webhook⁠ package, built on top of the official Docker image for amd64, arm/v7 and arm64/v8.

This setup allows direct access to the Docker host, providing a streamlined and efficient way to manage webhooks. Given that the existing instructions were outdated, this repository offers a more up-to-date (as of 2026 June) solution.

⁠Features
  • Docker Host Access: Directly access the Docker host for seamless integration.
  • Updated Dependencies: Currently working image with updated dependencies.
  • Easy Deployments: Can facilitate automatic deployment of Docker containers.

⁠Running the container

⁠Docker compose (preferred)
services:
  webhook-om:
    image: obermotz/webhook-om:latest
    container_name: webhook-om
    command: -verbose -hooks=/etc/webhook/hooks.json -hotreload
    ports:
      - "9000:9000"
    volumes:
      - ./webhook-om/config:/etc/webhook
      - ./webhook-om/scripts:/opt/scripts
      - /var/run/docker.sock:/var/run/docker.sock
    restart: unless-stopped
⁠Peasant mode
docker run -d -p 9000:9000 --name=webhook \
  -v ./webhook-om/config:/etc/webhook \
  -v ./webhook-om/scripts:/opt/scripts \
  -v /var/run/docker.sock:/var/run/docker.sock \
  obermotz/webhook-om -verbose -hooks=/etc/webhook/hooks.json -hotreload

⁠Usage

This Docker image allows you to manage and deploy webhooks. For detailed instructions on configuring and using the webhook package, refer to the original documentation⁠.

⁠The dockerfile

FROM        golang:alpine AS build
LABEL       org.opencontainers.image.authors="[email protected]"
WORKDIR     /go/src/github.com/adnanh/webhook
ENV         WEBHOOK_VERSION=2.8.3
RUN         apk add --update -t build-deps curl libc-dev gcc libgcc
RUN         curl -L --silent -o webhook.tar.gz https://github.com/adnanh/webhook/archive/${WEBHOOK_VERSION}.tar.gz && \
            tar -xzf webhook.tar.gz --strip 1
RUN         go get -d -v
RUN         CGO_ENABLED=0 go build -ldflags="-s -w" -o /usr/local/bin/webhook

FROM        docker:dind
COPY        --from=build /usr/local/bin/webhook /usr/local/bin/webhook
WORKDIR     /etc/webhook
VOLUME      ["/etc/webhook"]
EXPOSE      9000
ENTRYPOINT  ["/usr/local/bin/webhook"]

⁠Example hooks.json

[
  {
    "id": "frgnotify-off",
    "execute-command": "/usr/local/bin/docker",
    "pass-arguments-to-command":
    [
      {
        "source": "string",
        "name": "stop"
      },
      { 
        "source": "string",
        "name": "frigate-notify"
      }
    ]
  },
  { 
    "id": "frgnotify-on",
    "execute-command": "/usr/local/bin/docker",
    "pass-arguments-to-command":
    [
      {
        "source": "string",
        "name": "start"
      },
      { 
        "source": "string",
        "name": "frigate-notify"
      }
    ]
  }
]

Tag summary

Content type

Image

Digest

sha256:044519708…

Size

129 MB

Last updated

4 months ago

docker pull obermotz/webhook-om