Back to Apps
ONLYOFFICE Document Server

Deploy ONLYOFFICE Document Server on Your Own Server

Online office suite comprising viewers and editors for texts, spreadsheets and presentations

Productivity

Want to deploy ONLYOFFICE Document Server on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is ONLYOFFICE Document Server?

ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.

Self-Host ONLYOFFICE Document Server

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

General
3

Deploy

Copy the configuration and run it on your server.

services:
  onlyoffice_documentserver:
    image: onlyoffice/documentserver:7.3.3.50
    environment:
      JWT_ENABLED: "true"
      JWT_HEADER: Authorization
      JWT_IN_BODY: "true"
      JWT_SECRET: 3a7ccf02652c
    volumes:
      - onlyoffice_documentserver-logs:/var/log/onlyoffice
      - onlyoffice_documentserver-data:/var/www/onlyoffice/Data
      - onlyoffice_documentserver-lib:/var/lib/onlyoffice
      - onlyoffice_documentserver-rabbitmq:/var/lib/rabbitmq
      - onlyoffice_documentserver-redis:/var/lib/redis
      - onlyoffice_documentserver-postgresql:/var/lib/postgresql
      - onlyoffice_documentserver-fonts:/usr/share/fonts/truetype/custom
volumes:
  onlyoffice_documentserver-logs: {}
  onlyoffice_documentserver-data: {}
  onlyoffice_documentserver-lib: {}
  onlyoffice_documentserver-rabbitmq: {}
  onlyoffice_documentserver-redis: {}
  onlyoffice_documentserver-postgresql: {}
  onlyoffice_documentserver-fonts: {}

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:80

Why Self-Host ONLYOFFICE Document Server?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

onlyoffice/documentserver:${app_version}

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"