DEV Community

Discussion on: When Does It Make Sense to Use Docker?

Collapse
 
gauravumrani profile image
Gaurav

We have used Docker container for deployment, there were two reasons for that.

  1. We used LibreOffice to convert Docx to pdf via API, so in our application, we need LibreOffice to be installed also, we include the installation of LibreOffice in docker file, we also used puppeteer for generating pdf, for that we need headless chrome browser, that also is installed from docker file.

  2. We bought 1 server instance, we needed to deploy multiple apps on 1 server, so multiple apps were having the same env keys such as the SENTRY key for API and WebApp, so we deployed apps on multiple docker containers so API keys, etc do not cause any issues.

Collapse
 
markoa profile image
Marko Anastasov

Thanks for sharing.

This reminds me of my recent use case. We were building our latest book using Pandoc, and to install Pandoc + Latex the right way is such a pain in the ass, using a Docker image was 10x easier! :)