Docker Community Forums

Share and learn in the Docker community.

How to run libreoffice-headless image as a service

Hi all, i am new to docker. And now i’m trying to create an api to convert document. I am using libreoffice-headless image and now i’m confusing how to use the image as a service (in docker compose) with ports, etc. Because i want people to be able to send the document to the service and get converted document back (so maybe it’ll work like an API)

Thank you

If this image is just a collection of commands to convert documents, you can’t run it as a service. You can create your own API listening on a port and running the libreoffice headless container whenever you send the request to the API.