Extending Dockership

Dockership doesn’t provide a plugin system. However, it exposes some machine-friendly interfaces you can write programs against to extend its basic functionality.

Web hooks

You can get notifications pushed to your server when some events happen in Dockership. To do this, add the WebHook property to a project in your configuration file.

All notifications will be sent as POST requests with a JSON value in the body, thus with an application/json content type. will be sent when a deploy succeeds for this project. The request will have a JSON object body with keys previous_revision, current_revision, project, environment and errors.

Currently, the only notification happens after a deploy. The sent JSON value will be an object with:

HTTP endpoints

For pulling information out of Dockership, you can access some resources exposed as JSON values in HTTP endpoints.