Grab the binary corresponding to your operating system and architecture from the release page, then run:
$ SERVER_ADDR=0.0.0.0:6801 AGENT_ENDPOINT=http://localhost:6800 HUB_TOKEN=<valid-jwt-token> HUB_ENDPOINT=https://example.com/.well-known/mercure http-broadcast
A Docker image is available on Docker Hub. The following command is enough to get a working server in demo mode:
docker run -d --name mercure-hub \
-e JWT_KEY='!ChangeMe!' \
dunglas/mercure
docker run --rm -ti \
-e SERVER_ADDR=0.0.0.0:6801 \
-e AGENT_ENDPOINT=http://varnish:6081 \
-e HUB_TOKEN="<valid-jwt-token>" \
-e HUB_ENDPOINT=http://mercure-hub/.well-known/mercure \
-p 6801:6801
jderusse/http-broadcast
curl http://localhost:6801/foo/bar -X PURGE