Install
Gotenberg runs anywhere Docker runs. Keep it behind your firewall: it loads the URLs and runs the documents you send it.
Live demo
Try the API before you install it. A public instance runs at demo.gotenberg.dev:
curl \
--request POST https://demo.gotenberg.dev/forms/chromium/convert/url \
--form url=https://sparksuite.github.io/simple-html-invoice-template/ \
-o invoice.pdf
The demo runs on a small Render instance, with 512 MB of RAM and half a CPU. It takes 2 requests per second from each address, and 5 MB per request. It's public: keep confidential documents for your own instance.
GotenUI, a web interface the community maintains, sends the same requests from a form. Its code lives at nktnet1/gotenui.
Docker
docker run --rm -p "3000:3000" gotenberg/gotenberg:9
The API listens on http://localhost:3000. Docker publishes the port on every network interface; bind it to localhost to keep it on your machine:
docker run --rm -p "127.0.0.1:3000:3000" gotenberg/gotenberg:9
The 9 tag follows the latest 9.x release. Pin an exact release in production, such as gotenberg/gotenberg:9.0.0, and upgrade on purpose.
Image variants
Every variant processes PDFs with litho, Gotenberg's PDF engine: merge, split, stamp, sign, encrypt, make PDF/A or PDF/UA, validate. They differ in the conversion engines they carry and in the platform they target.
| Image | Converts | Architectures |
|---|---|---|
gotenberg/gotenberg:9 | Web pages and office documents | amd64, arm64, arm/v7, 386, ppc64le |
gotenberg/gotenberg:9-chromium | Web pages, screenshots | amd64, arm64, arm/v7, 386, ppc64le |
gotenberg/gotenberg:9-libreoffice | Office documents | amd64, arm64, arm/v7, 386, ppc64le |
gotenberg/gotenberg:9-aws-lambda | Web pages and office documents | amd64, arm64 |
…:9-chromium-aws-lambda | Web pages, screenshots | amd64, arm64 |
…:9-libreoffice-aws-lambda | Office documents | amd64, arm64 |
gotenberg/gotenberg:9-cloudrun | Web pages and office documents | amd64 |
…:9-chromium-cloudrun | Web pages, screenshots | amd64 |
…:9-libreoffice-cloudrun | Office documents | amd64 |
A route whose engine an image lacks answers 404.
On 386, Docker 29.4 and later deny the socketcall system call in their default seccomp profile, to block the AF_ALG sockets of CVE-2026-31431. Gotenberg opens its sockets through socketcall on that architecture, so it fails to start with listen tcp :3000: socket: function not implemented. Run the image with --security-opt seccomp=unconfined (security_opt: [seccomp=unconfined] in Compose), or with a copy of Docker's default profile that allows socketcall. Either way the container can open AF_ALG sockets again, so keep the host kernel patched against CVE-2026-31431.
Docker Compose
services:
# Your other services.
gotenberg:
image: gotenberg/gotenberg:9
The other services of the same Compose project reach Gotenberg at http://gotenberg:3000. To reach it from your machine too, publish the port:
services:
gotenberg:
image: gotenberg/gotenberg:9
ports:
- "127.0.0.1:3000:3000"
Kubernetes
The image runs as the non-root user gotenberg, UID and GID 1001. Give the container at least 512Mi of memory and 0.2 CPU, and probe /health:
containers:
- name: gotenberg
image: gotenberg/gotenberg:9
ports:
- containerPort: 3000
securityContext:
runAsUser: 1001
allowPrivilegeEscalation: false
privileged: false
readinessProbe:
httpGet:
path: /health
port: 3000
livenessProbe:
httpGet:
path: /health
port: 3000
resources:
requests:
memory: 512Mi
cpu: 200m
A community-maintained Helm chart lives at MaikuMori/helm-charts.
Cloud Run
The -cloudrun images come configured for Cloud Run:
- They listen on the port Cloud Run sets in
PORT. - They start Chromium and LibreOffice with the container, so the first request doesn't wait.
- They log with the fields Cloud Logging expects.
- They send webhooks before answering, since Cloud Run may pause a container that has no request in flight.
Give the service at least 1Gi of memory. Cloud Run caps HTTP/1 requests at 32MB; use HTTP/2 to send larger files.
AWS Lambda
The -aws-lambda images run behind the AWS Lambda Web Adapter, already configured:
- The adapter forwards to port 3000 (
AWS_LWA_PORT) and waits for/healthbefore the first invocation. - It buffers each response (
AWS_LWA_INVOKE_MODE=buffered). Lambda caps requests and responses at 6MB: send large inputs withdownloadFrom. - Gotenberg sends webhooks before answering, since Lambda may freeze the function once it answers.
For results over 6MB, have Gotenberg upload them with a webhook, to S3 for example, instead of answering with them.
SnapStart
The -aws-lambda images support Lambda SnapStart, which cuts cold starts and costs less than Provisioned Concurrency:
- Start Chromium and LibreOffice during init, so the snapshot holds them running: set
CHROMIUM_AUTO_START=trueandLIBREOFFICE_AUTO_START=true. - Enable SnapStart with
ApplyOn: PublishedVersions, and invoke a published version or an alias. SnapStart doesn't apply to$LATEST. - Init runs when you publish a version, within 130 seconds. Under SnapStart, the adapter ignores
AWS_LWA_ASYNC_INIT: bound the wait withAWS_LWA_READINESS_CHECK_TIMEOUT_SECONDS.
SnapStart caps /tmp at 512MB, which caps the size of a conversion, and doesn't combine with Provisioned Concurrency or EFS. #1704 has test results.