# ONLYOFFICE Document Server — Self-Hosted Office Suite for Web Collaboration > A self-hosted document editing server with full compatibility for DOCX, XLSX, and PPTX files, real-time co-editing, and integration with Nextcloud, ownCloud, and other platforms. ## Install Save as a script file and run: # ONLYOFFICE Document Server — Self-Hosted Office Suite for Web Collaboration ## Quick Use ```bash docker run -d -p 80:80 onlyoffice/documentserver ``` ## Introduction ONLYOFFICE Document Server provides browser-based editors for documents, spreadsheets, and presentations with high compatibility for Microsoft Office formats. It is designed to integrate with file management platforms like Nextcloud, ownCloud, Seafile, and others, adding collaborative editing to existing infrastructure. ## What ONLYOFFICE Does - Edits DOCX, XLSX, and PPTX files in the browser with high format fidelity - Supports real-time co-editing with tracked changes, comments, and version history - Integrates with Nextcloud, ownCloud, Seafile, Alfresco, and other platforms via connectors - Provides fillable forms, mail merge, and document comparison features - Offers a document conversion API for server-side format transformations ## Architecture Overview ONLYOFFICE Document Server runs as a Node.js application with multiple service components: a document editor frontend, a conversion service, and a collaboration engine. It uses PostgreSQL for session metadata and RabbitMQ for inter-service communication. Documents are rendered client-side in a canvas-based editor, and edits are synchronized between users via the collaboration server. The Docker image bundles all dependencies for simplified deployment. ## Self-Hosting & Configuration - Deploy with Docker using the official `onlyoffice/documentserver` image - Configure a JWT secret for secure communication between the editor and integrated platforms - Connect to an external PostgreSQL and RabbitMQ for production scalability - Install Nextcloud or ownCloud connectors to enable editing from those platforms - Place behind a reverse proxy with HTTPS for secure access ## Key Features - Near-native Microsoft Office format compatibility reduces conversion artifacts - Real-time co-editing with presence indicators and cursor tracking - Fillable form builder creates interactive document templates - Plugin system extends the editor with macros, translators, and AI assistants - API allows embedding editors into any web application ## Comparison with Similar Tools - **LibreOffice Online (Collabora)** — ODF-focused; ONLYOFFICE has stronger OOXML compatibility - **CryptPad** — encrypted collaboration; ONLYOFFICE offers richer formatting and Office compatibility - **Google Docs** — proprietary and cloud-only; ONLYOFFICE is self-hosted and private - **Etherpad** — plain text collaboration; ONLYOFFICE provides full document, spreadsheet, and slide editing - **HedgeDoc** — Markdown editor; ONLYOFFICE handles complex formatted documents ## FAQ **Q: Is ONLYOFFICE fully open source?** A: Document Server is available under AGPL v3. The desktop apps and some connectors are also open source. Enterprise features require a commercial license. **Q: How does ONLYOFFICE integrate with Nextcloud?** A: Install the ONLYOFFICE connector app in Nextcloud and point it to your Document Server URL. Files open in ONLYOFFICE editors directly from the Nextcloud interface. **Q: Can it handle large documents?** A: Yes. The canvas-based renderer handles documents with hundreds of pages. Server resources should be scaled for concurrent editing sessions. **Q: What are the server requirements?** A: Minimum 2 CPU cores and 4 GB RAM for a small team. Add resources proportionally for more concurrent editors. ## Sources - https://github.com/ONLYOFFICE/DocumentServer - https://helpcenter.onlyoffice.com/server/docker/document/docker-installation.aspx --- Source: https://tokrepo.com/en/workflows/27ad205d-3e68-11f1-9bc6-00163e2b0d79 Author: Script Depot