Setup
The archive contains the binary, the fonts, a Dockerfile, a docker-compose.yml and the README. There is no published image on a registry: you build it once and keep it in your own registry, so it never carries a licence or a secret from us.
Build, run, check, render
Build the image
Build from the Dockerfile in the archive and tag it with the version. The result is about 139 MB, most of it fonts.
Run one container
Publish port 8080, mount the fonts read-only and pass the licence token as an environment variable or as a file.
Check health
GET / answers with the version, protocol, licence state and concurrency. It is the readiness probe your orchestrator wants.
POST a request
The body is the same protocol-2 request the renderer reads on stdin. The response is the document, with headers for format, page count, duration and exit code.
Build and run
docker build -t erd-report-serve:1.0.2 .
docker run --rm -p 8080:8080 \
-e ERD_REPORT_LICENSE="$(cat acme.licence)" \
erd-report-serve:1.0.2
curl -sS http://127.0.0.1:8080/
curl -sS --data-binary @request.bin \
-H 'Content-Type: application/octet-stream' \
http://127.0.0.1:8080/ -o invoice.pdf docker-compose.yml
services:
erd-report:
build: .
ports:
- "8080:8080"
environment:
ERD_REPORT_LISTEN: 0.0.0.0
ERD_REPORT_LICENSE_FILE: /etc/erd-report/license
volumes:
- ./acme.licence:/etc/erd-report/license:ro
restart: unless-stopped Routes
| Route | Result |
|---|---|
| POST / | The document, with headers for format, page count and duration |
| GET / | Health and licence state as JSON |
| Anything else | 404, or 405 with Allow: GET, POST on / |
Sizing and scaling
Sizing
About 30 MB of memory before a render, then roughly 0.69 MB per page, for every format. In practice: 128 MB up to 10 pages, 256 MB up to 100, 1 GB up to 1000.
Scaling
One container renders one document at a time. Scale by running more containers behind your load balancer: there is no shared state, so any of them can answer any request.
The image has no TLS and no authentication. Put it on a private network and terminate TLS and authentication in the reverse proxy or service mesh in front of it.
Setup questions
Does the container include TLS or authentication?
No, deliberately. Put a reverse proxy in front of it for TLS, authentication and rate limiting; the container only renders.
Can it render more than one document at a time?
No. One container renders one document per request at a time, because the drawing backend is process-wide. Scale with more containers, not with threads.
Is there a published image I can pull?
No. You build the image from the archive and keep it in your own registry. That way it never contains a licence or a secret from us.
How do I pass the licence?
Either inline with ERD_REPORT_LICENSE or as a mounted file with ERD_REPORT_LICENSE_FILE. The health route reports the parsed state.
What if the licence expires?
The health route reports the expired state and each render logs it; rendering continues. Nothing needs to be restarted or reactivated.
Running this in production? Choose an edition and a term, and see the price before you request anything.
Request a licenceFrequently asked questions
What is EREL?
EREL — the ERD Reporting Expression Language — is the small, safe language a template uses wherever a value has to be worked out: an element binding, a visibility rule, a group key, a formatting rule, a chart series, a barcode value.
It is deliberately closed. There are literals, references to the data and to the report, member access, a fixed set of built-in functions such as format.currency, concat and count, and the usual arithmetic, comparison, logical and conditional operators. There is no input or output, no loop, no user-defined function and no way to reach the host, so a template stays data and never becomes code.
The designer and the engine each implement EREL, and both have to produce the same value — or the same diagnostic — for every valid expression. That is why a template looks the same in the designer, in ERD Report Cloud and in the document ERD Report Server answers with.
What is a template?
A template is a JSON document (format erd-report-template, templateVersion 1): pages measured in points, each holding elements with a fixed frame and optional repeating bands, with an EREL expression wherever a value comes from the data. It can carry a dataSchema that says which data it expects, and images are embedded as data URIs — a URL or a file path in a template is never fetched.
The designer exports it, and that document is what you POST to the container: the request body is the same one erd-report-render reads on standard input — the manifest line, then the template, the data and any report or password sections. The server keeps no template store, so every request carries the template it should draw.