Brought to you by
FirePress.org |
play-with-ghost |
GitHub |
Twitter
The simplest usage of 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.
Expand content (click here).
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
Always check on docker hub the most recent build:
https://hub.docker.com/r/devmtl/webhook/tags
You should use this tag format in production.
${VERSION} _ ${DATE} _ ${HASH-COMMIT}
devmtl/webhook:2.6.9_2019-08-29_23H00s56_a54f96b
These tags are also available to try stuff quickly:
devmtl/webhook:2.6.9
devmtl/webhook:stable
devmtl/webhook:latest
If you are looking for an alternative to WordPress, Ghost might be the CMS you are looking for. Check out our hosting plans.
Expand content (click here).
Our mission is to empower freelancers and small organizations to build an outstanding mobile-first website.
Because we believe your website should speak up in your name, we consider our mission completed once your site has become your impresario.
Find me on Twitter @askpascalandy.
— The FirePress Team 🔥📰
The power of communities pull request and forks means that 1 + 1 = 3
. You can help to make this repo a better one! Here is how:
- Fork it
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Check this post for more details: Contributing to our Github project. Also, by contributing you agree to the Contributor Code of Conduct on GitHub.
- This git repo is under the GNU V3 license. Find it here.