How To

Install ONLYOFFICE on Ubuntu with Oracle DB Integration

If you want to Install ONLYOFFICE on Ubuntu servers for document collaboration and enterprise productivity, ONLYOFFICE Docs offers a powerful open-source solution. The platform includes editors for documents, spreadsheets, presentations, forms, and PDFs while supporting real-time collaboration across teams.

ONLYOFFICE is widely used in self-hosted environments because it integrates with platforms like Nextcloud, Moodle, WordPress, Jira, and many other cloud services. On Ubuntu 22.04, the easiest deployment method uses Docker containers, which simplify installation and updates.

Why Install ONLYOFFICE on Ubuntu Systems?

Organizations and developers prefer ONLYOFFICE because it combines flexibility, privacy, and compatibility with Microsoft Office formats such as DOCX, XLSX, and PPTX.

Running ONLYOFFICE on Ubuntu also gives administrators full control over storage, authentication, and integrations. Since the platform supports Docker-based deployment, scaling and maintenance become much easier.

Before starting, ensure your server meets these minimum requirements:

  • Dual-core processor or better
  • At least 4 GB RAM
  • 40 GB free storage
  • Docker installed and updated
  • Swap memory configured for stability

Install ONLYOFFICE on Ubuntu Using Docker

Docker remains the recommended way to deploy ONLYOFFICE Docs because it bundles all required dependencies into a single container.

First, pull and run the ONLYOFFICE Document Server container:

sudo docker run -i -t -d -p 80:80 --restart=always \-e JWT_SECRET=my_secure_secret onlyoffice/documentserver

This command launches the service and exposes it through port 80. The JWT secret improves integration security between ONLYOFFICE and external platforms.

If you need a custom port, replace 80:80 with your preferred port mapping:

sudo docker run -i -t -d -p 8080:80 --restart=always \-e JWT_SECRET=my_secure_secret onlyoffice/documentserver

Once deployment finishes, open your server IP or domain in a browser to access the ONLYOFFICE welcome page.

Install ONLYOFFICE on Ubuntu with Persistent Storage

Storing container data outside Docker is highly recommended. This protects your files, logs, and configurations during updates or container replacements.

You can mount persistent storage volumes using:

sudo docker run -i -t -d -p 80:80 --restart=always \-v /app/onlyoffice/logs:/var/log/onlyoffice \-v /app/onlyoffice/data:/var/www/onlyoffice/Data \-v /app/onlyoffice/lib:/var/lib/onlyoffice \-v /app/onlyoffice/db:/var/lib/postgresql \-e JWT_SECRET=my_secure_secret onlyoffice/documentserver

With mounted volumes, system upgrades become safer and easier to manage.

Enable HTTPS for Secure Access

For production environments, HTTPS is essential. ONLYOFFICE supports automatic SSL certificate generation using Let’s Encrypt.

Run the container with HTTPS support enabled:

sudo docker run -i -t -d -p 80:80 -p 443:443 --restart=always \-e LETS_ENCRYPT_DOMAIN=yourdomain.com \-e LETS_ENCRYPT_MAIL=admin@example.com \-e JWT_SECRET=my_secure_secret onlyoffice/documentserver

After setup, your instance becomes accessible securely through HTTPS.

Connecting ONLYOFFICE to Oracle Database

ONLYOFFICE also supports Oracle Database connectivity for enterprise-grade deployments. Instead of manually adding long environment variables, administrators can use Docker’s --env-file option for cleaner configuration management.

To enable Oracle support, configure the database type as oracle and specify advanced Oracle connection settings through additional parameters.

This setup improves scalability and allows organizations to integrate ONLYOFFICE into existing Oracle-based infrastructures.

Conclusion

Learning how to Install ONLYOFFICE on Ubuntu servers can help businesses create a secure and collaborative document management environment. Using Docker simplifies deployment, while HTTPS and Oracle Database integration provide enterprise-ready security and scalability.

With proper configuration, ONLYOFFICE on Ubuntu 22.04 becomes a reliable self-hosted productivity platform for teams, developers, and organizations.

Cyber Defence

Recent Posts

Bash Scripting Best Practices Every Beginner Should Know

Introduction Bash scripting is a powerful way to automate Linux tasks, but writing a script…

15 hours ago

How To Create A Self-Signed SSL Certificate Using Bash And OpenSSL

Introduction A self-signed SSL certificate is a certificate that is created and signed by the…

16 hours ago

How To Debug Bash Scripts Using bash -x And set Commands

Introduction Debugging is an important part of Bash scripting. When a script does not work…

20 hours ago

How To Use Cron Jobs With Bash Scripts For Automation

Introduction Cron jobs are used in Linux to run commands or Bash scripts automatically at…

21 hours ago

How To Use Pipes In Bash Scripts For Command Chaining

Introduction Pipes are an important feature in Linux and Bash scripting. A pipe allows you…

22 hours ago

How To Use grep, awk, And sed In Bash Scripts

Introduction The grep, awk, and sed commands are powerful text-processing tools in Linux. They are…

23 hours ago