Simple, Laravel-based webhook tester for inspecting webhook calls from third-party services.
Download the latest docker-compose.yml file
wget -O docker-compose.yml https://raw.githubusercontent.com/rpungello/webhook-tester/main/docker-compose-prod.ymlDownload sample .env file.
wget -O .env https://raw.githubusercontent.com/rpungello/webhook-tester/main/.env.exampleConfigure the .env file to suit your needs. In particular, for WebSockets to work properly, the following needs to be set properly:
VITE_REVERB_HOST: public-facing hostname of the app (e.g.webhook-tester.example.com)VITE_REVERB_PORT: public-facing port of the app (usually 80 or 443)VITE_REVERB_SCHEME: http or https This will enable the use of WebSockets to facilitate realtime display of new webhook requests.
Remove any unnecessary services from the downloaded docker-compose file (e.g. mysql, redis, etc.) if you don't need them.
Start Docker stack.
docker compose up -dGenerate an app key.
Note that if your Docker container name is anything other than webhook-tester-app-1,
you'll need to download the script and edit accordingly.
curl https://raw.githubusercontent.com/rpungello/webhook-tester/main/docker/key.sh | shRestart the Docker stack to apply the updated .env file
docker compose down
docker compose up -dRun migrations (replace webhook-tester-app-1 with the name of the app container)
docker exec webhook-tester-app-1 php artisan migrate --force