DocumentationFundamentals
Docker container
How to use Webhook Relay client with Docker to start forwarding webhooks to your internal services and open tunnels to expose your services
Prerequisites
- Docker, installation instructions: https://docs.docker.com/engine/install/
- Webhook Relay account, get your token here: https://my.webhookrelay.com/tokens
Forward webhooks
- Go to https://my.webhookrelay.com/buckets and create a bucket and where you want to forward the webhooks
- Go to the tokens page and get your access key and secret
export RELAY_KEY=<replace with your key>
export RELAY_SECRET=<replace with your secret>
- Start a webhookrelayd agent:
docker run -d \
--name whr-relayd \
--restart always \
-e RELAY_KEY=${RELAY_KEY} \
-e RELAY_SECRET=${RELAY_SECRET} \
-e BUCKETS=<bucket name> \
webhookrelay/webhookrelayd:latest
If you are using self-signed certificates on your internal side, specify INSECURE
environment variable to skip validation:
INSECURE=true
Open a tunnel
- Go to https://my.webhookrelay.com/tunnels and create a tunnel with your desired destination
- Start a bidirectional tunnel:
docker run --name whr-relayd \
--net host \
--restart always \
-d webhookrelay/webhookrelayd:latest \
--mode tunnel -t mytunnelname -k [access key] -s [access secret]
Here webhookrelayd commands:
- --mode tunnel indicates that it should start bidirectional tunnel
- -t mytunnelname acts as a filter, it has to match the tunnel name that you have created previously
- -k access key is your authentication token key
- -s access secret is your authentication token secret
You can also specify these details through environment variables:
KEY=<your token key>
SECRET=<your token secret>
TUNNELS=<comma separated list of tunnels>
REGION=<region - eu, au, us-west (defaults to eu)>