Docker container for adnanh/webhook
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| latest-rev | ||
| latest-tag | ||
| entrypoint.sh | ||
| LICENSE | ||
| README.md | ||
Docker image for adnanh/webhook
Tags
git.huskee.gay/huskee/webhook:latest: based on latest git commit
There are also version tags (e.g. 2.8.2).
Setting up
Various options can be set using environment variables:
WEBHOOK_USE_SOCKET: Listen on unix socket instead of TCP portWEBHOOK_SOCKET: Unix socket to listen to (defaults to/run/webhook.sock)WEBHOOK_IP: IP address to listen to (defaults to 0.0.0.0)WEBHOOK_PORT: Port to listen to (defaults to 9000)WEBHOOK_SECURE: Use HTTPS (certificate and key must be mounted on/cert.pemand/key.pemrespectively)WEBHOOK_ALLOWED_METHODS: List of allowed HTTP methods (comma separated)WEBHOOK_URL_PREFIX: URL prefix where hooks will be served (e.g. example.com/hooks)
Hooks
Hooks can be defined either in /hooks/hooks.yaml or /hooks/hooks.json. For hook syntax and examples check webhook's documentation
Scripts
This image is based on Alpine Linux 3.22 and uses bash as its shell. Any packages needed can be installed using apk.
Running
Docker compose
webhook:
image: git.huskee.gay/huskee/webhook:latest
restart: always
container_name: "webhook"
environment:
#- WEBHOOK_USE_SOCKET: true
#- WEBHOOK_SOCKET: "/run/webhook.sock"
#- WEBHOOK_IP: "0.0.0.0"
#- WEBHOOK_PORT: "9000"
#- WEBHOOK_SECURE: true
#- WEBHOOK_ALLOWED_METHODS: "POST,GET"
#- WEBHOOK_URL_PREFIX: "hooks"
ports:
- "9000:9000"
volumes:
- ./hooks:/hooks
- ./scripts:/scripts
- ./webhook.sock:/run/webhook.sock # only use if WEBHOOK_USE_SOCKET is enabled
- ./key.pem:/key.pem # only use if WEBHOOK_SECURE is enabled
- ./cert.pem:/cert.pem # only use if WEBHOOK_SECURE is enabled