GithubHelp home page GithubHelp logo

lufuhu / docker-webhook-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from almir/docker-webhook

0.0 0.0 0.0 26 KB

Dockerized https://github.com/adnanh/webhook

License: MIT License

Shell 76.37% Dockerfile 23.63%

docker-webhook-1's Introduction

Webhook Dockerized

Running webhook in Docker

The simplest usage of 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:

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:

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:

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 in Dockerfile simply by adding one more line to the previous example:

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:

docker run -d -p 9000:9000 --name=webhook my-webhook-image

docker-webhook-1's People

Contributors

almir avatar bkmeneguello avatar stefancrain avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.