Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
docker-image-php-nginx
Configurable Docker image for PHP-FPM with Nginx for several frameworks. Includes SQLite, Composer, Xdebug, Blackfire, NodeJS, database command-line clients and popular PHP extensions.
-
gotenberg
A developer-friendly API for converting numerous document formats into PDF files, and more!
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I'm not sure about the particular container. It seems to expose a port, but it doesn't seem to launch libreoffice itself. I think it's only intended for manual use from the host system. I noticed that there are also other images that seem to run libreoffice as a server and expose it's port, e.g. https://github.com/lcrea/libreoffice-headless
Have you considered checking out https://laradock.io/
Here is my Docker image that covers most bases. For web server, I bundle Nginx in one container with PHP-FPM and configure both using environment variables.
For HTTPS with Let's Encrypt (and reverse proxying), there's also nginx-proxy. Traefik is the better product, no doubt, but it's quite complex.
Hope this helps: https://github.com/thomasmoors/laravel-docker
But xlsx to csv sounds like a really simple task. You should consider if you could do the task using PHP, for example the PHPSpreadsheet package or it's wrapper Laravel-Excel.
If you need it for PDF conversions, I suggest you take a bit larger container, but one that everyone else uses. Gotenberg is a popular project that has it's own API wrapper to provide access to libreoffice among others.
I'd use PHPWord then, but, if it's not enough, surely go ahead and have a headless libreoffice server like here. You can probably set up your own dockerfile following the examples, as the existing projects seem a bit outdated.
Related posts
- Best Xampp alternative
- Moodle App Docker Images
- 🎅🎄🎁 Devilbox now supports different PHP versions per project
- Excel/PDF Report Generation in Laravel
- I am new to xampp and cannot seem to get my code to display on the browser. I am using a pc and I type in the URL localhost/xampp/htdocs/index.php and I get error 404, and other great things like the code below when I use phpstorm and click on the chrome icon. What do I need to do to make this work?