LibreOffice Docker#
LibreOffice is a free and powerful office suite, and a successor to OpenOffice.org (commonly known as OpenOffice).
Its clean interface and feature-rich tools help you unleash your creativity and enhance your productivity.
Setup Nextcloud#
docker run -d --name nextcloud -p 8080:80 nextcloud:stable
When nextcloud is set up, install the App “Collabora Online”. Then go to Configuration->Collabora Online and enter the domain name of your other VM, e.g. http://libreoffice.yourhost:9980
LibreOffice Online Docker#
.envlibreoffice.yml
Using it#
LibreOffice Online admin dashboard: http://localhost:9980/loleaflet/dist/admin/admin.html
LibreOffice Online without using Nextcloud: http://libreoffice.yourhost:9980/loleaflet/dist/loleaflet.html?file_path=file:///opt/libreoffice/share/template/common/internal/idxexample.odt
linuxserver/libreoffice Docker#
docker run -d --name=libreoffice -p 3000:3000 -e username=admin -e password=123456 --restart always --cap-add MKNOD quay.io/linuxserver.io/libreoffice
libreofficedocker/libreoffice-unoserver Docker#
A packaged unoserver with REST APIs using Libreoffice in Docker
docker run -d --name=libreoffice -p 2004:2004 libreofficedocker/libreoffice-unoserver:3.23
API#
There is only one POST /request API.
Default payload
curl -s -v \
--request POST \
--url http://127.0.0.1:2004/request \
--header 'Content-Type: multipart/form-data' \
--form "file=@/path/to/your/file.xlsx" \
--form 'convert-to=pdf' \
--output 'file.pdf'
file: Type ofFile, requiredconvert-to: Type ofString, required
Advance payload
curl -s -v \
--request POST \
--url http://127.0.0.1:2004/request \
--header 'Content-Type: multipart/form-data' \
--form "file=@/path/to/your/file.xlsx" \
--form 'convert-to=pdf' \
--form 'opts[]=--landscape' \
--output 'file.pdf'
file: Type ofFile, requiredconvert-to: Type ofString, requiredopts: Type ofString[]
Screenshots#

