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

groupdel Command in Linux: Remove a Group and Audit Files

The groupdel command in Linux removes a group from the system. It deletes the group's entry from /etc/group and /etc/gshadow,…

11 hours ago

wc Command in Linux: Count Lines, Words, Characters, and Bytes

The wc command in Linux counts lines, words, characters, and bytes in files or standard input. It…

11 hours ago

top Command in Linux: Monitor Processes and Resource Usage

The top command in Linux provides a real-time view of running processes and system resource usage. From…

12 hours ago

usermod Command in Linux: Modify User Accounts and Groups

The usermod command in Linux modifies existing user account attributes. You can use it to manage group…

12 hours ago

sort Command in Linux: Sort Text, Numbers, Columns, and More

The sort command in Linux reads lines from files or standard input and writes them to standard…

2 days ago

wall Command in Linux: Broadcast Messages to Logged-In Users

The wall command in Linux sends a message to the terminals of all currently logged-in users. The…

2 days ago