Captain Hook is a webhook server running flask-gitea-webserver #blackbeard
Charles Reid 3ea68d58b5 clean up logging in hook script 2 days ago
docs shorten readme, organize docs 7 months ago
hooks clean up logging in hook script 2 days ago
mkdocs-material @ b0c6890853 Update mkdocs-material for mkdocs 1.0 6 months ago
.gitignore prepare for mkdocs 10 months ago
.gitmodules add mkdocs material git submodule 10 months ago
Dockerfile python2 -> python3 alpine 7 months ago update howto debugging with some ideas 10 months ago
LICENSE add original license 7 months ago shorten readme, organize docs 7 months ago add all new branch 10 months ago print message instead of throwing 501 for GET method 5 months ago
config.example.json update config examples and fix whitelist ip exception 10 months ago
docker-compose.yml Change mount point for hooks - less confusing. 10 months ago
mkdocs.yml light touch 7 months ago
requirements.txt update requirements: flask and requests 7 months ago


Captain hook is a Python WSGI appication that handles webhooks from gitea and github.

Captain Hook documentation:

Browse the documentation locally: docs/

Captain Hook source code:

Captain Hook on Github:

git clone
cd b-captain-hook
pip install -r requirements.txt
cp config.example.json config.json
# edit config.json

Run standalone:


Run with docker:

docker-compose build
docker-compose up -d
docker-compose down




This project is just the reinterpretation and merge of two approaches:



It is implemented with the help of python 3 alpine: