ONLYOFFICE/Docker-DocumentServer ? reverse-engineered prompt

Reverse engineered prompt

Build me a Docker image and compose setup for ONLYOFFICE Document Server so I can run the office suite in a container and connect it to my own apps.

I want it to start cleanly with a simple command, expose the web app on a port I choose, and support saving logs, certificates, cache, database, and other data in mounted volumes so nothing important is lost when the container restarts. It should work for the community version, and also cover the enterprise and developer setups where the extra services are bundled.

Please make HTTPS setup easy too, including using my own certificate files and the option to use automatically generated Let’s Encrypt certs. If there are useful defaults for security, memory, or runtime config, include them. It should also be easy to run with Docker Compose for local testing and production style use.

If anything depends on current Docker or image best practices, look up the latest docs online before finishing.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab