
How to add Docling Serve API in your Docker Compose Stack
Docling is good at taking a file or url and converting it to markdown. You have the option to use it as an API, which is pretty nice. Here is how you can add it to your docker compose stack: yourappname-docling-serve : image : quay.io/docling-project/docling-serve-cpu container_name : yourappname-docling-serve restart : unless-stopped ports : - 5001:5001 env_file : - .env In the env file or environment you can choose to enable the UI for tests: DOCLING_SERVE_ENABLE_UI=1 If you have nvidia available you can use a different docker image than quay.io/docling-project/docling-serve-cpu . In production make sure to remove this part which exposes the port to outside traffic. Currently they don't have any api key setup. ... ports : - 5001:5001 ... More on this here: dockling-serve
Continue reading on Dev.to Tutorial
Opens in a new tab



