ONLYOFFICE DocSpace - OneClickInstall

June 4, 2026 ยท View on GitHub

License Docker Pulls Docker Image Version GitHub Stars

ONLYOFFICE DocSpace - OneClickInstall

A simple self-hosted installer for ONLYOFFICE DocSpace using Docker or Linux packages.

๐Ÿš€ Start๐Ÿ›  Flags๐Ÿ’ก Examples๐Ÿ–ฅ๏ธ Reqsโœ… OS๐Ÿ“š Resources๐Ÿ“ License

ONLYOFFICE DocSpace is a room-based collaborative platform which allows organizing a clear file structure depending on users' needs or project goals. Flexible access permissions and user roles allow fine-tuning the access to the whole space or separate rooms.

๐Ÿš€ Quick Start

1. Download the installer

Community Edition (default):

curl -O https://download.onlyoffice.com/docspace/docspace-install.sh

If you want to install a different edition, choose one of the following:

Enterprise Edition:

curl -O https://download.onlyoffice.com/docspace/docspace-enterprise-install.sh

Developer Edition:

curl -O https://download.onlyoffice.com/docspace/docspace-developer-install.sh

2. Run the script

Use the downloaded script to install ONLYOFFICE DocSpace with either the RPM/DEB package or Docker.

Install as RPM/DEB Package:

sudo bash <script-name> package

Install via Docker:

sudo bash <script-name> docker

Replace <script-name> with the name of the downloaded script (e.g., docspace-enterprise-install.sh).

๐Ÿ›  Flags

All scripts support -h to show available flags. View available options with:

For Docker installation:

sudo bash <script-name> docker -h

For DEB/RPM package installation:

sudo bash <script-name> package -h

Common flags

Works for both Docker and package installations

FlagValue placeholderDefault valueDescription
--installationtypecommunity | developer | enterpriseenterpriseChoose the edition
--updatetrue | falsefalseUpdate existing containers / packages
--skiphardwarechecktrue | falsefalseSkip CPU/RAM/Disk checks
--makeswaptrue | falsetrueCreate a swap file automatically
--uninstalltrue | falsefalseRemove an existing installation
--jwtheader<HEADER>AuthorizationJwtHTTP header used to pass the JWT
--jwtsecret<SECRET>(auto-generated)Secret key for JWT validation
--installfluentbittrue | falsetrueInstall / update Fluent Bit
--dashboardsusername<USER>onlyofficeUsername for /dashboards/
--dashboardspassword<PASS>(auto-generated)Password for /dashboards/
--localscriptstrue | falsefalseRun local scripts

Docker-specific flags

Applies only to Docker installation

Registry & Images

FlagValue placeholderDefault valueDescription
--registry<URL>-Docker registry URL
--username<USER>-Registry login
--password<PASS>-Registry password
--volumesdir<DIR>/var/lib/docker/volumesHost dir for Docker volumes

DocSpace Core

FlagValue placeholderDefault valueDescription
--installdocspacetrue | falsetrueInstall / update DocSpace
--docspaceversion<VERSION>(latest stable)DocSpace version
--docspacehost<HOST>localhostHostname / IP
--externalport<PORT>80External HTTP port
--machinekey<KEY>(auto-generated)core.machinekey value

Document Server (ONLYOFFICE Docs)

FlagValue placeholderDefault valueDescription
--installdocstrue | falsetrueInstall / update Document Server
--docsimage<IMAGE_NAME>onlyoffice/documentserver-eeDocument Server image name
--docsversion<VERSION>(latest stable)Document Server version
--docsurl<URL>-URL of external Docs instance

MySQL

FlagValue placeholderDefault valueDescription
--installmysqltrue | falsetrueDeploy MySQL container
--mysqlrootpassword<PASS>(auto-generated)Root password
--mysqldatabase<DB_NAME>onlyofficeDocSpace DB name
--mysqluser<USER>-DB user
--mysqlpassword<PASS>(auto-generated)DB user password
--mysqlhost<HOST>localhostHost/IP
--mysqlport<PORT>3306MySQL port

RabbitMQ

FlagValue placeholderDefault valueDescription
--installrabbitmqtrue | falsetrueDeploy RabbitMQ
--rabbitmqprotocol<PROTO>amqpProtocol
--rabbitmqhost<HOST>localhostHost/IP
--rabbitmqport<PORT>5672Port
--rabbitmqusername<USER>-Username
--rabbitmqpassword<PASS>-Password
--rabbitmqvirtualhost<VHOST>/Virtual host

Redis

FlagValue placeholderDefault valueDescription
--installredistrue | falsetrueDeploy Redis
--redishost<HOST>localhostHost/IP
--redisport<PORT>6379Port
--redisusername<USER>-Username (optional)
--redispassword<PASS>-Password (optional)

OpenSearch

FlagValue placeholderDefault valueDescription
--installelastictrue | falsetrueDeploy OpenSearch
--elasticprotocol<PROTO>httpProtocol
--elastichost<HOST>localhostHost/IP
--elasticport<PORT>9200Port

OpenSearch Dashboards

FlagValue placeholderDefault valueDescription
--dashboardsusername<USER>onlyofficeDashboards login
--dashboardspassword<PASS>(auto-generated)Dashboards password

Fluent Bit

FlagValue placeholderDefault valueDescription
--installfluentbittrue | falsetrueDeploy Fluent Bit for logs

SSL / HTTPS & Let's Encrypt

FlagValue placeholderDefault valueDescription
--letsencryptdomain<DOMAIN>-Domain for Let's Encrypt
--letsencryptmail<MAIL>-Admin email
--certfile<FILE>-Path to existing certificate
--certkeyfile<FILE>-Path to existing key

Misc

FlagValue placeholderDefault valueDescription
--noninteractivetrue | falsefalseAuto-confirm prompts

๐Ÿ’ก Examples

Typical usage scenarios with different combinations of flags.

  1. Quick install on port 8080
sudo bash docspace-install.sh docker --externalport 8080
  1. Update all components, skip hardware check
sudo bash docspace-install.sh \
  --update true \
  --skiphardwarecheck true
  1. Install DocSpace without ONLYOFFICE Docs
sudo bash docspace-install.sh --installdocs false
  1. Update ONLYOFFICE Docs only to version 9.0.2
sudo bash docspace-install.sh \
  --update true \
  --docsimage onlyoffice/documentserver-ee \
  --docsversion 9.0.2 \
  --installdocs true \
  --installdocspace false \
  --installrabbitmq false \
  --installredis false
  1. Update DocSpace to a specific version 3.2.0 and skip all other components
sudo bash docspace-install.sh \
  --update true \
  --docspaceversion 3.2.0 \
  --installdocs false \
  --installrabbitmq false \
  --installredis false
  1. Pull images from a private registry
sudo bash docspace-install.sh \
  --registry https://reg.example.com:5000 \
  --username USER \
  --password PASS
  1. Set JWT header & secret
sudo bash docspace-install.sh \
  --jwtheader Authorization \
  --jwtsecret super-secret-key
  1. Custom MySQL root password
sudo bash docspace-install.sh --mysqlrootpassword new-secret-pw
  1. Automatic Let's Encrypt
sudo bash docspace-install.sh \
  --letsencryptdomain yourdomain.com \
  --letsencryptmail admin@yourdomain.com
  1. Bring your own certificate
sudo bash docspace-install.sh \
  --certfile /path/fullchain.pem \
  --certkeyfile /path/privkey.pem
  1. Connect external ONLYOFFICE Docs
sudo bash docspace-install.sh \
  --installdocs false \
  --docsurl http://docs.example.com:8080
  1. Use external MySQL
sudo bash docspace-install.sh \
  --installmysql false \
  --mysqlhost mysql.example.com \
  --mysqlport 3306 \
  --mysqldatabase docspace \
  --mysqluser docspace \
  --mysqlpassword super-secret
  1. Use external RabbitMQ
sudo bash docspace-install.sh \
  --installrabbitmq false \
  --rabbitmqprotocol amqp \
  --rabbitmqhost mq.example.com \
  --rabbitmqport 5672 \
  --rabbitmqusername docspace \
  --rabbitmqpassword mq-pass \
  --rabbitmqvirtualhost /
  1. Use external Redis
sudo bash docspace-install.sh \
  --installredis false \
  --redishost redis.example.com \
  --redisport 6379 \
  --redispassword redis-pass
  1. Use external OpenSearch
sudo bash docspace-install.sh \
  --installelastic false \
  --elasticprotocol https \
  --elastichost search.example.com \
  --elasticport 9200
  1. Combined example: all external services, update only DocSpace
sudo bash docspace-install.sh \
  --update true \
  --installdocspace true \
  --docspaceversion 3.2.0 \
  --installdocs false \
  --installmysql false \
  --installrabbitmq false \
  --installredis false \
  --installelastic false \
  --docsurl https://docs.example.com \
  --mysqlhost mysql.example.com \
  --mysqluser docspace \
  --mysqlpassword super-secret \
  --rabbitmqhost mq.example.com \
  --rabbitmqusername docspace \
  --rabbitmqpassword mq-pass \
  --redishost redis.example.com \
  --redispassword redis-pass \
  --elastichost search.example.com \
  --elasticprotocol https

๐Ÿ–ฅ System Requirements

ResourceMinimum
CPU4-core
RAM8 GB
Disk40 GB+ free
Swapโ‰ฅ 6 GB
KernelLinux 3.10+ (x86_64)

* Minimum requirements for test environments. For production, 8 GB RAM or more is recommended.

โœ… Supported Operating Systems

The installation scripts support the following operating systems, which are regularly tested as part of our CI/CD pipelines:

  • RHEL 9
  • CentOS 9S
  • CentOS 10S
  • Fedora 42
  • Fedora 43
  • Debian 11
  • Debian 12
  • Debian 13
  • Ubuntu 22.04
  • Ubuntu 24.04
  • Ubuntu 26.04

๐Ÿ“š Additional Resources

ResourceLink
Official websitehttps://www.onlyoffice.com/
Docs installerhttps://github.com/ONLYOFFICE/OneClickInstall-Docs
Help Centerhttps://helpcenter.onlyoffice.com/docspace/installation
Product pagehttps://www.onlyoffice.com/docspace.aspx
Community Forumhttps://forum.onlyoffice.com
Stack Overflowhttps://stackoverflow.com/questions/tagged/onlyoffice

๐Ÿ“ License

ONLYOFFICE DocSpace is distributed under the GNU AGPL v3 license for the Community Edition.
Enterprise and Developer editions require a valid commercial license. For more details, please contact sales@onlyoffice.com.