HUB
Sign inSign up
docker-unoconv-webservice logo

didstopia/docker-unoconv-webservice

By didstopia

•Updated over 10 years ago

This is a fork. The only difference is that this one has a health check endpoint at /health.

Image
0

668

didstopia/docker-unoconv-webservice repository overview

⁠docker-unoconv-webservice

Dockerimage to run unoconv as a webservice through tfk-api-unoconv⁠.

If you prefer a pre-build version it is available from hub.docker.com⁠ just do a regular pull

$ docker pull zrrrzzt/docker-unoconv-webservice

⁠Build

$ docker build -t docker-unoconv-webservice .

⁠Run - example

$ docker run -d -p 80:3000 --name unoconv docker-unoconv-webservice

or if you use the pre-build version

$ docker run -d -p 80:3000 --name unoconv zrrrzzt/docker-unoconv-webservice

⁠Usage

Post the file you want to convert to the server and get the converted file in return.

See all possible conversions on the unoconv website⁠.

API for the webservice is /unoconv/{format-to-convert-to} so a docx to pdf would be

$ curl --form [email protected] http://192.168.99.100/unoconv/pdf > myfile.pdf

⁠Environment

You can change the webservice port and filesize-limit by changing environment variables.

SERVER_PORT default is 3000

PAYLOAD_MAX_SIZE default is 1048576 (1 MB)

Change it in the Dockerfile or create an env-file and load it at containerstart

$ docker run --env-file=docker.env -d -p 80:3000 --name unoconv docker-unoconv-webservice
Tag summary
Recent tags
Content type
Image
Digest
Size
308.9 MB
Last updated
over 10 years ago
docker pull didstopia/docker-unoconv-webservice:latest