Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/almir/docker-webhook
Dockerized https://github.com/adnanh/webhook
https://github.com/almir/docker-webhook
Last synced: 8 days ago
JSON representation
Dockerized https://github.com/adnanh/webhook
- Host: GitHub
- URL: https://github.com/almir/docker-webhook
- Owner: almir
- License: mit
- Created: 2016-03-04T09:40:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T19:22:02.000Z (5 months ago)
- Last Synced: 2024-08-02T16:08:32.897Z (3 months ago)
- Language: Shell
- Size: 42 KB
- Stars: 163
- Watchers: 9
- Forks: 54
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[Webhook](https://github.com/adnanh/webhook/) Dockerized
=================## Running webhook in Docker
The simplest usage of [almir/webhook](https://hub.docker.com/r/almir/webhook/) image is for one to host the hooks JSON file on their machine and mount the directory in which those are kept as a volume to the Docker container:
```shell
docker run -d -p 9000:9000 -v /dir/to/hooks/on/host:/etc/webhook --name=webhook \
almir/webhook -verbose -hooks=/etc/webhook/hooks.json -hotreload
```Another method of using this Docker image is to create a simple `Dockerfile`:
```docker
FROM almir/webhook
COPY hooks.json.example /etc/webhook/hooks.json
```This `Dockerfile` and `hooks.json.example` files should be placed inside the same directory. After that run `docker build -t my-webhook-image .` and then start your container:
```shell
docker run -d -p 9000:9000 --name=webhook my-webhook-image -verbose -hooks=/etc/webhook/hooks.json -hotreload
```Additionally, one can specify the parameters to be passed to [webhook](https://github.com/adnanh/webhook/) in `Dockerfile` simply by adding one more line to the previous example:
```docker
FROM almir/webhook
COPY hooks.json.example /etc/webhook/hooks.json
CMD ["-verbose", "-hooks=/etc/webhook/hooks.json", "-hotreload"]
```Now, after building your Docker image with `docker build -t my-webhook-image .`, you can start your container by running just:
```shell
docker run -d -p 9000:9000 --name=webhook my-webhook-image
```