-
Docker image: Carbone Reference images
-
Maintained by: Carbone Team
-
Documentation: On-premise install, options and plugins
-
Where to get help: Chat with us or email us : contact@carbone.io
Carbone is a simple and efficient tool that allows you to generate all your documents. Send a template file and a JSON dataset, and the engine will return the document with all the data inside. Many formats are supported: PDF, ODT, DOCX, XLSX, HTML, XML, PPTX, JPG, PNG, TXT, CSV, EPUB, IDML, ODS, PPTX, ODG, and ODP.
Minimal version of Carbone. This image does not include Libreoffice (no PDF generation possible). You can use this image to run Carbone with the LibreOffice version of your choice.
export CARBONE_VERSION=4.25.0
docker buildx build --build-arg CARBONE_VERSION=$CARBONE_VERSION --platform linux/arm64/v8,linux/amd64 --tag carbone/carbone-ee:$CARBONE_VERSION-slim --attest type=provenance,mode=max --sbom=true -f ./Dockerfile-slim .
Full version of Carbone including the latest version of LibreOffice
export CARBONE_VERSION=4.25.0
docker buildx build --build-arg CARBONE_VERSION=$CARBONE_VERSION --build-arg LO_VERSION=24.8.2.1 --platform linux/arm64/v8,linux/amd64 --tag carbone/carbone-ee:full-$CARBONE_VERSION --attest type=provenance,mode=max --sbom=true -f ./Dockerfile .
Full version of Carbone including the latest version of LibreOffice. This version also includes all Google Fonts (royalty-free).
export CARBONE_VERSION=4.25.0
docker buildx build --build-arg CARBONE_VERSION=$CARBONE_VERSION --build-arg LO_VERSION=24.8.2.1 --platform linux/arm64/v8,linux/amd64 --tag carbone/carbone-ee:full-$CARBONE_VERSION-fonts --attest type=provenance,mode=max --sbom=true -f ./Dockerfile-fonts .
Carbone Enterprise Edition is commercial software that requires a license for its use.
However, you can launch Carbone without a license and enjoy all its "Community Edition" features free of charge and without limits. Please note that advanced functions will not work, and we do not provide support for this version.
To find out how to obtain a Carbone license, contact us by chat or email us: contact@carbone.io
To start Carbone with Community Edition features :
docker run -t -i --rm --platform linux/amd64 -p 4000:4000 carbone/carbone-ee
To start Carbone Enterprise Edition :
export CARBONE_EE_LICENSE=`cat your_license_file.carbone-license`
docker run -t -i --rm --platform linux/amd64 -p 4000:4000 -e CARBONE_EE_LICENSE carbone/carbone-ee
You can then call Carbone API (Full API documentation):
curl http://host-ip:4000/status
Run Carbone via docker-compose
Example docker-compose.yml
for carbone-ee
:
version: "3.9"
services:
carbone:
image: carbone/carbone-ee
platform: linux/amd64
ports:
- "4000:4000"
secrets:
- source: carbone-license
target: /app/config/prod.carbone-license
environment:
- CARBONE_EE_STUDIO=true
secrets:
carbone-license:
file: your_license.carbone-license
With Docker SWARM and Kubernetes, you can run multiple instances of the Carbone container for load balancing and/or failover.
By default, our S3-compatible plugins are included. The corresponding code is here :
All you need to do is configure the following environment variables:
AWS_SECRET_ACCESS_KEY
=ACCESS_KEY_IDAWS_ACCESS_KEY_ID
=SECRET_KEYAWS_ENDPOINT_URL
=s3.api.urlAWS_REGION
=parisBUCKET_RENDERS
="BUCKET NAME to store your generated documents "BUCKET_TEMPLATES
="BUCKET NAME to store your templates "
This plugin can be used with all S3-compatible storage services: AWS S3, GCS, Azure Blob Storage, Minio, etc.
You can also save templates
and renders
(generated documents), a storage space must be shared among all Carbone instances. This can be a mounted folder or a remote storage (S3, OpenStack Swift). Click to learn more about file persistence.
Standard port mappings can be used if you'd like to access the instance from the host without the container's IP. Add -p 4000:4000
to the docker run
arguments and then access either http://localhost:4000
or http://host-ip:4000
in a browser.