Clustered, multi-tenant Mercure hub: real-time updates over SSE, one static Go binary.
928
Gossiper is a clustered, multi-tenant Mercure hub. Publish an update to any node and every subscriber on a matching topic receives it, whichever node it is connected to.
EventSource.Images are built for linux/amd64 and linux/arm64.
docker run -d -p 8080:8080 -v gossiper-data:/data \
-e MERCURE_PUBLISHER_JWT_KEY="$(docker run --rm paularlott/gossiper genkey)" \
-e GOSSIPER_ANONYMOUS=true \
-e GOSSIPER_HISTORY_DB=/data/history.db \
paularlott/gossiper
The hub is at https://localhost:8080/.well-known/mercure. It serves HTTPS with a self-signed certificate, kept in /data/tls. To use your own certificate, set GOSSIPER_TLS_CERT and GOSSIPER_TLS_KEY. Behind a proxy that terminates TLS, set GOSSIPER_HTTP_ONLY=true instead.
Every setting is a GOSSIPER_* environment variable: the flag name in capitals, with dashes as underscores. For example, --max-publish-size becomes GOSSIPER_MAX_PUBLISH_SIZE. FrankenPHP's MERCURE_* variables work too.
| Variable | Purpose |
|---|---|
MERCURE_PUBLISHER_JWT_KEY | publishers' JWT key (HMAC secret or PEM public key) |
GOSSIPER_ANONYMOUS | allow subscribers without a token |
GOSSIPER_HISTORY_DB | keep the history across restarts (e.g. /data/history.db) |
GOSSIPER_CLUSTER_KEY, GOSSIPER_CLUSTER_PEERS | join nodes into a cluster (port 7946 tcp and udp) |
GOSSIPER_ADMIN_LISTEN | serve the admin API and metrics on an internal address |
GOSSIPER_LOG_FORMAT | json (the image default) or console |
/data, owned by UID 65532./gossiper healthcheck checks readiness; the image's HEALTHCHECK runs it./licenses.Content type
Image
Digest
sha256:bd4420fb0…
Size
7.8 MB
Last updated
11 days ago
docker pull paularlott/gossiper