OnlyOffice DocSpace
Suite Colaboração OnlyOffice
Instalação e Configuração OnlyOffice DocSpace
Link: https://helpcenter.onlyoffice.com/docspace/installation/docspace-community-running-docker.aspx
Running ONLYOFFICE DocSpace in Docker
Introduction
ONLYOFFICE DocSpace is a document hub where you can connect users and documents in one place to boost collaboration.
This guide will show you how to run ONLYOFFICE DocSpace on your machine using Docker.
Overview
Unlike the standard multi-container deployment, this build runs all ONLYOFFICE DocSpace services inside a single container instead of as separate per-service containers. The full stack consists of the following containers:
Compared to the standard multi-container deployment, this build has the following differences:
System requirements
Cloning the repository
Clone the DocSpace-buildtools repository using the following command:
git clone https://github.com/ONLYOFFICE/DocSpace-buildtools.git
Once the repository is cloned, change into the Compose directory:
cd DocSpace-buildtools/install/docker/community
Running prebuilt images
To start ONLYOFFICE DocSpace in detached mode using the prebuilt images, run the following command:
docker compose up -d
Once the containers are up and running, open a browser and enter http://localhost or http://your-ip-address in the address bar to access ONLYOFFICE DocSpace.
Building images from source
Use this option if you want to build the ONLYOFFICE DocSpace images yourself or test changes from a specific branch.
Build and start the containers using the following command:
docker compose up -d --build
Once the build is complete and the containers are running, open http://localhost or http://your-ip-address in your browser to access ONLYOFFICE DocSpace.
Running with SSL
ONLYOFFICE DocSpace supports both Let's Encrypt and custom SSL certificates.
Using a Let's Encrypt certificate
To run ONLYOFFICE DocSpace with a Let's Encrypt certificate, run the following command, specifying your own domain, email, and portal URL:
SSL_MODE="letsencrypt" \
SSL_DOMAIN="example.com,portal.example.com,api.example.com" \
SSL_EMAIL="admin@example.com" \
APP_URL_PORTAL="https://example.com/" \
docker compose \
-f docker-compose.yml \
-f ssl.yml \
up -d
The following parameters are used:
Using a custom or private CA certificate
If you are using a self-signed certificate or a certificate issued by a private Certificate Authority (CA), the ONLYOFFICE Document Server must also trust this certificate.
Uncomment the following volume in the docker-compose.yml file:
services:
onlyoffice-document-server:
volumes:
- ${CERTIFICATE_PATH}:/var/www/onlyoffice/Data/certs/extra-ca-certs.pem
Then specify the certificate path on the host and run the following command:
SSL_MODE="custom" \
SSL_DOMAIN="example.com" \
SSL_CERT_PATH="/etc/nginx/certs/fullchain.crt" \
SSL_KEY_PATH="/etc/nginx/certs/private.key" \
CERTIFICATE_PATH="./config/nginx/certs/fullchain.crt" \
APP_URL_PORTAL="https://example.com/" \
docker compose \
-f docker-compose.yml \
-f ssl.yml \
up -d
The following parameters are used:
Once the containers are up and running, open your portal address, for example https://example.com/, in a browser to access ONLYOFFICE DocSpace.