{"id":13493356,"url":"https://github.com/ONLYOFFICE/Docker-CommunityServer","last_synced_at":"2025-03-28T11:32:25.564Z","repository":{"id":30568707,"uuid":"34123635","full_name":"ONLYOFFICE/Docker-CommunityServer","owner":"ONLYOFFICE","description":"Collaborative system for managing documents, projects, customer relations and emails in one place","archived":false,"fork":false,"pushed_at":"2025-02-05T14:38:30.000Z","size":417,"stargazers_count":518,"open_issues_count":65,"forks_count":187,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-02-05T15:42:49.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ONLYOFFICE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-17T15:15:49.000Z","updated_at":"2025-02-04T23:20:33.000Z","dependencies_parsed_at":"2024-03-18T12:48:00.812Z","dependency_job_id":"f16fb8b7-5c1b-4d2b-8b9a-d7cdcb97dee1","html_url":"https://github.com/ONLYOFFICE/Docker-CommunityServer","commit_stats":{"total_commits":361,"total_committers":17,"mean_commits":"21.235294117647058","dds":0.2770083102493075,"last_synced_commit":"703b202db5eef36dca109cde34219319b22dcca2"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONLYOFFICE%2FDocker-CommunityServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONLYOFFICE%2FDocker-CommunityServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONLYOFFICE%2FDocker-CommunityServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONLYOFFICE%2FDocker-CommunityServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ONLYOFFICE","download_url":"https://codeload.github.com/ONLYOFFICE/Docker-CommunityServer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246021271,"owners_count":20710910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T19:01:14.449Z","updated_at":"2025-03-28T11:32:25.551Z","avatar_url":"https://github.com/ONLYOFFICE.png","language":"Shell","readme":"\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://www.onlyoffice.com/\"\u003e\u003cimg alt=\"https://www.onlyoffice.com/\" width=\"500px\" src=\"https://static-www.onlyoffice.com/images/logo_small.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003chr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.onlyoffice.com/\"\u003eWebsite\u003c/a\u003e |\n  \u003ca href=\"https://www.onlyoffice.com/workspace.aspx\"\u003eONLYOFFICE Workspace\u003c/a\u003e |\n  \u003ca href=\"https://helpcenter.onlyoffice.com/\"\u003eDocumentation\u003c/a\u003e |\n  \u003ca href=\"https://api.onlyoffice.com/\"\u003eAPI\u003c/a\u003e |\n  \u003ca href=\"https://www.onlyoffice.com/about.aspx\"\u003eAbout\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.facebook.com/ONLYOFFICE-833032526736775/\"\u003e\u003cimg alt=\"https://www.facebook.com/ONLYOFFICE-833032526736775/\" src=\"https://download.onlyoffice.com/assets/logo/opensource/fb.png\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://twitter.com/ONLY_OFFICE\"\u003e\u003cimg alt=\"https://twitter.com/ONLY_OFFICE\" src=\"https://download.onlyoffice.com/assets/logo/opensource/tw.png\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.youtube.com/user/onlyofficeTV\"\u003e\u003cimg alt=\"https://www.youtube.com/user/onlyofficeTV\" src=\"https://download.onlyoffice.com/assets/logo/opensource/yt.png\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.instagram.com/the_onlyoffice/\"\u003e\u003cimg alt=\"https://www.instagram.com/the_onlyoffice/\" src=\"https://download.onlyoffice.com/assets/logo/opensource/in.png\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://www.apache.org/licenses/LICENSE-2.0\"\u003e\u003cimg alt=\"http://www.apache.org/licenses/LICENSE-2.0\" src=\"https://img.shields.io/badge/License-Apache%20v2.0-green.svg?style=flat\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/ONLYOFFICE/CommunityServer/releases\"\u003e\u003cimg alt=\"https://github.com/ONLYOFFICE/CommunityServer/releases\" src=\"https://img.shields.io/badge/release-11.0.0-blue.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n* [Overview](#overview)\n* [Functionality](#functionality)\n* [Recommended System Requirements](#recommended-system-requirements)\n* [Installing Prerequisites](#installing-prerequisites)\n* [Installing MySQL](#installing-mysql)\n* [Installing Community Server](#installing-community-server)\n* [Configuring Docker Image](#configuring-docker-image)\n    - [Storing Data](#storing-data)\n    - [Running ONLYOFFICE Community Server on Different Port](#running-onlyoffice-community-server-on-different-port)\n    - [Exposing Additional Ports](#exposing-additional-ports)\n    - [Running ONLYOFFICE Community Server using HTTPS](#running-onlyoffice-community-server-using-https)\n    \t+ [Using the automatically generated Let's Encrypt SSL Certificates](#using-the-automatically-generated-lets-encrypt-ssl-certificates)\n        + [Generation of Self Signed Certificates](#generation-of-self-signed-certificates)\n        + [Strengthening the Server Security](#strengthening-the-server-security)\n        + [Installation of the SSL Certificates](#installation-of-the-ssl-certificates)\n        + [Available Configuration Parameters](#available-configuration-parameters)\n* [Installing ONLYOFFICE Workspace](#installing-onlyoffice-workspace)\n* [Upgrading ONLYOFFICE Community Server](#upgrading-onlyoffice-community-server)\n* [Connecting Your Own Modules](#connecting-your-own-modules)\n* [Project Information](#project-information)\n* [User Feedback and Support](#user-feedback-and-support)\n\n## Overview\n\nONLYOFFICE Community Server is a free open-source collaborative system developed to manage documents, projects, customer relationship and email correspondence, all in one place.\n\nStarting from version 11.0 Community Server, is distributed as ONLYOFFICE Groups on terms of Apache License.\n\n## Functionality\n\n* Cross platform solution: Linux, Windows\n* Document management\n* Integration with Google Drive, Box, Dropbox, OneDrive, OwnCloud\n* File sharing\n* Document embedding\n* Access rights management\n* Customizable CRM\n* Web-to-lead form\n* Invoicing system\n* Project Management\n* Gantt Chart\n* Milestones, task dependencies and subtasks\n* Time tracking\n* Automated reports\n* Blogs, forums, polls, wiki\n* Calendar\n* Email Aggregator\n* People module (employee database)\n* Support of more than 20 languages\n\nCommunity Server (distributed as ONLYOFFICE Groups) is a part of **ONLYOFFICE Workspace** that also includes [Document Server (distributed as ONLYOFFICE Docs)](https://github.com/ONLYOFFICE/DocumentServer), [Mail Server](https://github.com/ONLYOFFICE/Docker-MailServer), [Talk (instant messaging app)](https://github.com/ONLYOFFICE/XMPPServer). \n\nControl Panel for administrating **ONLYOFFICE Workspace** can be found in [this repo](https://github.com/ONLYOFFICE/ControlPanel). \n\n## Recommended System Requirements\n\n* **RAM**: 4 GB or more\n* **CPU**: dual-core 2 GHz or higher\n* **Swap file**: at least 2 GB\n* **HDD**: at least 2 GB of free space\n* **Distributive**: 64-bit Red Hat, CentOS or other compatible distributive with kernel version 3.8 or later, 64-bit Debian, Ubuntu or other compatible distributive with kernel version 3.8 or later\n* **Docker**: version 1.9.0 or later\n\n## Installing Prerequisites\n\nBefore you start **ONLYOFFICE Community Server**, you need to create the following folders:\n\n1. For MySQL server\n```\nsudo mkdir -p \"/app/onlyoffice/mysql/conf.d\";\nsudo mkdir -p \"/app/onlyoffice/mysql/data\";\nsudo mkdir -p \"/app/onlyoffice/mysql/initdb\";\n```\n\n2. For **Community Server** data and logs\n```\nsudo mkdir -p \"/app/onlyoffice/CommunityServer/data\";\nsudo mkdir -p \"/app/onlyoffice/CommunityServer/logs\";\nsudo mkdir -p \"/app/onlyoffice/CommunityServer/letsencrypt\";\n```\n\n3. For **Document server** data and logs\n```\nsudo mkdir -p \"/app/onlyoffice/DocumentServer/data\";\nsudo mkdir -p \"/app/onlyoffice/DocumentServer/logs\";\n```\n\n4. And for **Mail Server** data and logs\n```\nsudo mkdir -p \"/app/onlyoffice/MailServer/data/certs\";\nsudo mkdir -p \"/app/onlyoffice/MailServer/logs\";\n```\n5. For **Control Panel**:\n```\nsudo mkdir -p \"/app/onlyoffice/ControlPanel/data\";\nsudo mkdir -p \"/app/onlyoffice/ControlPanel/logs\";\n```\nThen create the `onlyoffice` network:\n```\nsudo docker network create --driver bridge onlyoffice\n```\n\n## Installing MySQL\n\nAfter that you need to create MySQL server Docker container. Create the configuration file:\n```\necho \"[mysqld]\nsql_mode = 'NO_ENGINE_SUBSTITUTION'\nmax_connections = 1000\nmax_allowed_packet = 1048576000\ngroup_concat_max_len = 2048\" \u003e /app/onlyoffice/mysql/conf.d/onlyoffice.cnf\n```\n\nCreate the SQL script which will generate the users and issue the rights to them. The `onlyoffice_user` is required for **ONLYOFFICE Community Server**, and the `mail_admin` is required for **ONLYOFFICE Mail Server** in case it is going to be installed:\n```\necho \"ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'my-secret-pw';\nCREATE USER IF NOT EXISTS 'onlyoffice_user'@'%' IDENTIFIED WITH mysql_native_password BY 'onlyoffice_pass';\nCREATE USER IF NOT EXISTS 'mail_admin'@'%' IDENTIFIED WITH mysql_native_password BY 'Isadmin123';\nGRANT ALL PRIVILEGES ON *.* TO 'root'@'%';\nGRANT ALL PRIVILEGES ON *.* TO 'onlyoffice_user'@'%';\nGRANT ALL PRIVILEGES ON *.* TO 'mail_admin'@'%';\nFLUSH PRIVILEGES;\" \u003e /app/onlyoffice/mysql/initdb/setup.sql\n```\n\n*Please note, that the above script will set permissions to access SQL server from any domains (`%`). If you want to limit the access, you can specify hosts which will have access to SQL server.*\n\nNow you can create MySQL container setting MySQL version to 8.0.29:\n```\nsudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-mysql-server \\\n -v /app/onlyoffice/mysql/conf.d:/etc/mysql/conf.d \\\n -v /app/onlyoffice/mysql/data:/var/lib/mysql \\\n -v /app/onlyoffice/mysql/initdb:/docker-entrypoint-initdb.d \\\n -e MYSQL_ROOT_PASSWORD=my-secret-pw \\\n -e MYSQL_DATABASE=onlyoffice \\\n mysql:8.0.29\n ```\n\n## Installing Community Server\n\nUse this command to install **ONLYOFFICE Community Server**:\n```\nsudo docker run --net onlyoffice -i -t -d --privileged --restart=always --name onlyoffice-community-server -p 80:80 -p 443:443 -p 5222:5222 --cgroupns=host \\\n -e MYSQL_SERVER_ROOT_PASSWORD=my-secret-pw \\\n -e MYSQL_SERVER_DB_NAME=onlyoffice \\\n -e MYSQL_SERVER_HOST=onlyoffice-mysql-server \\\n -e MYSQL_SERVER_USER=onlyoffice_user \\\n -e MYSQL_SERVER_PASS=onlyoffice_pass \\\n -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \\\n -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \\\n -v /app/onlyoffice/CommunityServer/letsencrypt:/etc/letsencrypt \\\n -v /sys/fs/cgroup:/sys/fs/cgroup:rw \\\n onlyoffice/communityserver\n```\n\n## Configuring Docker Image\n\n### Storing Data\n\nAll the data are stored in the specially-designated directories, **data volumes**, at the following location:\n* **/var/log/onlyoffice** for ONLYOFFICE Community Server logs\n* **/var/www/onlyoffice/Data** for ONLYOFFICE Community Server data\n* **/etc/letsencrypt** for information on generated certificates\n\nTo get access to your data from outside the container, you need to mount the volumes. It can be done by specifying the '-v' option in the docker run command.\n\n    sudo docker run -i -t -d -p 80:80 --cgroupns=host \\\n        -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \\\n        -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \\\n\t\t-v /app/onlyoffice/CommunityServer/letsencrypt:/etc/letsencrypt \\\n        -v /sys/fs/cgroup:/sys/fs/cgroup:rw onlyoffice/communityserver\n\nStoring the data on the host machine allows you to easily update ONLYOFFICE once the new version is released without losing your data.\n\n### Running ONLYOFFICE Community Server on Different Port\n\nTo change the port, use the -p command. E.g.: to make your portal accessible via port 8080 execute the following command:\n\n    sudo docker run -i -t -d --privileged -p 8080:80 --cgroupns=host \\\n    -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \\\n    -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \\\n \t-v /app/onlyoffice/CommunityServer/letsencrypt:/etc/letsencrypt \\\n    -v /sys/fs/cgroup:/sys/fs/cgroup:rw onlyoffice/communityserver\n\n### Exposing Additional Ports\n\nThe container ports to be exposed for **incoming connections** are the folloing:\n\n* **80** for plain HTTP\n* **443** when HTTPS is enabled (see below)\n* **5222** for XMPP-compatible instant messaging client (for ONLYOFFICE Talk correct work)\n\nYou can expose ports by specifying the '-p' option in the docker run command.\n\n    sudo docker run -i -t -d --privileged -p 80:80 -p 443:443 -p 5222:5222 --cgroupns=host \\\n    -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \\\n    -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \\\n \t-v /app/onlyoffice/CommunityServer/letsencrypt:/etc/letsencrypt \\\n    -v /sys/fs/cgroup:/sys/fs/cgroup:rw onlyoffice/communityserver\n\n\nFor **outgoing connections** you need to expose the following ports:\n\n* **80** for HTTP\n* **443** for HTTPS\n\nAdditional ports to be exposed for the mail client correct work:\n\n* **25** for SMTP\n* **465** for SMTPS\n* **143** for IMAP\n* **993** for IMAPS\n* **110** for POP3\n* **995** for POP3S\n\n### Running ONLYOFFICE Community Server using HTTPS\n\n    sudo docker run -i -t -d -p 80:80  -p 443:443 \\\n        -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \\\n        -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data onlyoffice/communityserver\n\n\nAccess to the onlyoffice application can be secured using SSL so as to prevent unauthorized access. While a CA certified SSL certificate allows for verification of trust via the CA, a self signed certificates can also provide an equal level of trust verification as long as each client takes some additional steps to verify the identity of your website. Below the instructions on achieving this are provided.\n\nTo secure the application via SSL basically two things are needed:\n\n- **Private key (.key)**\n- **SSL certificate (.crt)**\n\nSo you need to create and install the following files:\n\n        /app/onlyoffice/CommunityServer/data/certs/onlyoffice.key\n        /app/onlyoffice/CommunityServer/data/certs/onlyoffice.crt\n\nWhen using CA certified certificates (e.g. [Let's Encrypt](https://letsencrypt.org/), these files are provided to you by the CA. When using self-signed certificates you need to generate these files yourself. \n\n#### Using the automatically generated Let's Encrypt SSL Certificates\n\n\tsudo docker exec -it onlyoffice-community-server bash\n\tbash /var/www/onlyoffice/Tools/letsencrypt.sh yourdomain.com subdomain1.yourdomain.com subdomain2.yourdomain.com\n \nWhere `yourdomain.com` is the address of the domain where your ONLYOFFICE Workspace is installed, and `subdomain1.yourdomain.com` and `subdomain2.yourdomain.com` (and any other subdomains separated with a space) are the subdomains for the main domain which you use.\n\nThe script will automatically create and install the letsencrypt.org CA-signed certificate to your server and restart the NGINX service for the changes to take effect.\n\nNow your portal should be available using the `https://` address.\n\n#### Generation of Self Signed Certificates\n\nGeneration of self-signed SSL certificates involves a simple 3 step procedure.\n\n**STEP 1**: Create the server private key\n\n```bash\nopenssl genrsa -out onlyoffice.key 2048\n```\n\n**STEP 2**: Create the certificate signing request (CSR)\n\n```bash\nopenssl req -new -key onlyoffice.key -out onlyoffice.csr\n```\n\n**STEP 3**: Sign the certificate using the private key and CSR\n\n```bash\nopenssl x509 -req -days 365 -in onlyoffice.csr -signkey onlyoffice.key -out onlyoffice.crt\n```\n\nYou have now generated an SSL certificate that's valid for 365 days.\n\n#### Strengthening the server security\n\nThis section provides you with instructions to [strengthen your server security](https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html).\nTo achieve this you need to generate stronger DHE parameters.\n\n```bash\nopenssl dhparam -out dhparam.pem 2048\n```\n\n#### Installation of the SSL Certificates\n\nOut of the four files generated above, you need to install the `onlyoffice.key`, `onlyoffice.crt` and `dhparam.pem` files at the onlyoffice server. The CSR file is not needed, but do make sure you safely backup the file (in case you ever need it again).\n\nThe default path that the onlyoffice application is configured to look for the SSL certificates is at `/var/www/onlyoffice/Data/certs`, this can however be changed using the `SSL_KEY_PATH`, `SSL_CERTIFICATE_PATH` and `SSL_DHPARAM_PATH` configuration options.\n\nThe `/var/www/onlyoffice/Data/` path is the path of the data store, which means that you have to create a folder named certs inside `/app/onlyoffice/CommunityServer/data/` and copy the files into it and as a measure of security you will update the permission on the `onlyoffice.key` file to only be readable by the owner.\n\n```bash\nmkdir -p /app/onlyoffice/CommunityServer/data/certs\ncp onlyoffice.key /app/onlyoffice/CommunityServer/data/certs/\ncp onlyoffice.crt /app/onlyoffice/CommunityServer/data/certs/\ncp dhparam.pem /app/onlyoffice/CommunityServer/data/certs/\nchmod 400 /app/onlyoffice/CommunityServer/data/certs/onlyoffice.key\n```\n\nYou are now just one step away from having our application secured.\n\n#### Available Configuration Parameters\n\n*Please refer the docker run command options for the `--env-file` flag where you can specify all required environment variables in a single file. This will save you from writing a potentially long docker run command.*\n\nBelow is the complete list of parameters that can be set using environment variables.\n\n- **ONLYOFFICE_HTTPS_HSTS_ENABLED**: Advanced configuration option for turning off the HSTS configuration. Applicable only when SSL is in use. Defaults to `true`.\n- **ONLYOFFICE_HTTPS_HSTS_MAXAGE**: Advanced configuration option for setting the HSTS max-age in the onlyoffice nginx vHost configuration. Applicable only when SSL is in use. Defaults to `31536000`.\n- **SSL_CERTIFICATE_PATH**: The path to the SSL certificate to use. Defaults to `/var/www/onlyoffice/Data/certs/onlyoffice.crt`.\n- **SSL_KEY_PATH**: The path to the SSL certificate's private key. Defaults to `/var/www/onlyoffice/Data/certs/onlyoffice.key`.\n- **SSL_DHPARAM_PATH**: The path to the Diffie-Hellman parameter. Defaults to `/var/www/onlyoffice/Data/certs/dhparam.pem`.\n- **SSL_VERIFY_CLIENT**: Enable verification of client certificates using the `CA_CERTIFICATES_PATH` file. Defaults to `false`\n- **MYSQL_SERVER_HOST**: The IP address or the name of the host where the server is running.\n- **MYSQL_SERVER_PORT**: The port number.\n- **MYSQL_SERVER_DB_NAME**: The name of a MySQL database to be created on image startup.\n- **MYSQL_SERVER_USER**: The new user name with superuser permissions for the MySQL account.\n- **MYSQL_SERVER_PASS**: The password set for the MySQL account. \n\n## Installing ONLYOFFICE Workspace\n\nONLYOFFICE Community Server is a part of ONLYOFFICE Community Edition that comprises also Document Server and Mail Server. To install them, follow these easy steps:\n\n**STEP 1**: Create the `onlyoffice` network.\n\n```bash\ndocker network create --driver bridge onlyoffice\n```\nThen launch containers on it using the 'docker run --net onlyoffice' option:\n\n**STEP 2**: Install MySQL.\n\nFollow [these steps](#installing-mysql) to install MySQL server.\n\n**STEP 3**: Generate JWT Secret\n\nJWT secret defines the secret key to validate the JSON Web Token in the request to the **ONLYOFFICE Document Server**. You can specify it yourself or easily get it using the command:\n```\nJWT_SECRET=$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32);\n```\n\n**STEP 4**: Install ONLYOFFICE Document Server.\n\n```bash\nsudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-document-server \\\n -e JWT_ENABLED=true \\\n -e JWT_SECRET=${JWT_SECRET} \\\n -e JWT_HEADER=AuthorizationJwt \\\n -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \\\n -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  \\\n -v /app/onlyoffice/DocumentServer/fonts:/usr/share/fonts/truetype/custom \\\n -v /app/onlyoffice/DocumentServer/forgotten:/var/lib/onlyoffice/documentserver/App_Data/cache/files/forgotten \\\n onlyoffice/documentserver\n```\nTo learn more, refer to the [ONLYOFFICE Document Server documentation](https://github.com/ONLYOFFICE/Docker-DocumentServer \"ONLYOFFICE Document Server documentation\").\n\n**STEP 5**: Install ONLYOFFICE Mail Server. \n\nFor the mail server correct work you need to specify its hostname 'yourdomain.com'.\nTo learn more, refer to the [ONLYOFFICE Mail Server documentation](https://github.com/ONLYOFFICE/Docker-MailServer \"ONLYOFFICE Mail Server documentation\").\n\n```bash\nsudo docker run --init --net onlyoffice --privileged -i -t -d --restart=always --name onlyoffice-mail-server -p 25:25 -p 143:143 -p 587:587 \\\n -e MYSQL_SERVER=onlyoffice-mysql-server \\\n -e MYSQL_SERVER_PORT=3306 \\\n -e MYSQL_ROOT_USER=root \\\n -e MYSQL_ROOT_PASSWD=my-secret-pw \\\n -e MYSQL_SERVER_DB_NAME=onlyoffice_mailserver \\\n -v /app/onlyoffice/MailServer/data:/var/vmail \\\n -v /app/onlyoffice/MailServer/data/certs:/etc/pki/tls/mailserver \\\n -v /app/onlyoffice/MailServer/logs:/var/log \\\n -h yourdomain.com \\\n onlyoffice/mailserver\n```\n\nThe additional parameters for mail server are available [here](https://github.com/ONLYOFFICE/Docker-CommunityServer/blob/master/docker-compose.yml#L75).\n\n**STEP 6**: Install ONLYOFFICE Control Panel\n\n```bash\ndocker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-control-panel \\\n-v /var/run/docker.sock:/var/run/docker.sock \\\n-v /app/onlyoffice/CommunityServer/data:/app/onlyoffice/CommunityServer/data \\\n-v /app/onlyoffice/ControlPanel/data:/var/www/onlyoffice/Data \\\n-v /app/onlyoffice/ControlPanel/logs:/var/log/onlyoffice onlyoffice/controlpanel\n```\n\n**STEP 7**: Install ONLYOFFICE Community Server\n\n```bash\nsudo docker run --net onlyoffice -i -t -d --privileged --restart=always --name onlyoffice-community-server -p 80:80 -p 443:443 -p 5222:5222 --cgroupns=host \\\n -e MYSQL_SERVER_ROOT_PASSWORD=my-secret-pw \\\n -e MYSQL_SERVER_DB_NAME=onlyoffice \\\n -e MYSQL_SERVER_HOST=onlyoffice-mysql-server \\\n -e MYSQL_SERVER_USER=onlyoffice_user \\\n -e MYSQL_SERVER_PASS=onlyoffice_pass \\\n -e DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server \\\n -e DOCUMENT_SERVER_JWT_ENABLED=true \\\n -e DOCUMENT_SERVER_JWT_SECRET=${JWT_SECRET} \\\n -e DOCUMENT_SERVER_JWT_HEADER=AuthorizationJwt \\\n -e MAIL_SERVER_API_HOST=${MAIL_SERVER_IP} \\\n -e MAIL_SERVER_DB_HOST=onlyoffice-mysql-server \\\n -e MAIL_SERVER_DB_NAME=onlyoffice_mailserver \\\n -e MAIL_SERVER_DB_PORT=3306 \\\n -e MAIL_SERVER_DB_USER=root \\\n -e MAIL_SERVER_DB_PASS=my-secret-pw \\\n -e CONTROL_PANEL_PORT_80_TCP=80 \\\n -e CONTROL_PANEL_PORT_80_TCP_ADDR=onlyoffice-control-panel \\\n -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \\\n -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \\\n -v /app/onlyoffice/CommunityServer/letsencrypt:/etc/letsencrypt \\\n -v /sys/fs/cgroup:/sys/fs/cgroup:rw \\\n onlyoffice/communityserver\n```\nWhere `${MAIL_SERVER_IP}` is the IP address for **ONLYOFFICE Mail Server**. You can easily get it using the command:\n```\nMAIL_SERVER_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' onlyoffice-mail-server)\n```\nAlternatively, you can use an automatic installation script to install ONLYOFFICE Workspace at once. For the mail server correct work you need to specify its hostname 'yourdomain.com'.\n\n**STEP 1**: Download the ONLYOFFICE Workspace Docker script file\n\n```bash\nwget https://download.onlyoffice.com/install/workspace-install.sh\n```\n\n**STEP 2**: Install ONLYOFFICE Workspace executing the following command:\n\n```bash\nworkspace-install.sh -md yourdomain.com\n```\n\nOr use [docker-compose](https://docs.docker.com/compose/install \"docker-compose\").\n\nFirst you need to clone this [GitHub repository](https://github.com/ONLYOFFICE/Docker-CommunityServer/):\n\n```bash\ngit clone https://github.com/ONLYOFFICE/Docker-CommunityServer\n```\n\nAfter that switch to the repository folder:\n\n```bash\ncd Docker-CommunityServer\n```\n\nFor the mail server correct work, you need to set a variable with your own hostname for the **Mail Server**:\n\n```bash\nexport MAIL_SERVER_HOSTNAME=\"your-own-hostname\"\n```\n\nAfter that, assuming you have docker-compose version 2.16.0 or later installed, execute the following command:\n\n```bash\ndocker-compose -f docker-compose.workspace_enterprise.yml up -d\n```\n\nThe instructions for running ONLYOFFICE Workspace Enterprise Edition are used as an example, if you need to run a different version, specify a different file:\n\n* [docker-compose.groups.yml](https://github.com/ONLYOFFICE/Docker-CommunityServer/blob/master/docker-compose.groups.yml) for Community Server (distributed as ONLYOFFICE Groups)\n* [docker-compose.workspace.yml](https://github.com/ONLYOFFICE/Docker-CommunityServer/blob/master/docker-compose.workspace.yml) for ONLYOFFICE Workspace Community Edition \n* [docker-compose.workspace_enterprise.yml](https://github.com/ONLYOFFICE/Docker-CommunityServer/blob/master/docker-compose.workspace_enterprise.yml) for ONLYOFFICE Workspace Enterprise Edition\n\n## Upgrading ONLYOFFICE Community Server\n\nTo upgrade to a newer release, please follow these easy steps:\n\n**STEP 1**: Make sure that all the container volumes are mounted following the **Storing Data** section instructions:\n \n\tsudo docker inspect --format='{{range $p,$conf:=.HostConfig.Binds}}{{$conf}};{{end}}' {{COMMUNITY_SERVER_ID}} \n\nwhere\n\t{{COMMUNITY_SERVER_ID}} stands for a container name or ID\n\n**STEP 2** Remove the current container\n\tsudo docker rm -f {{COMMUNITY_SERVER_ID}}\n\n**STEP 3** Remove the current image\n\tsudo docker rmi -f $(sudo docker images | grep onlyoffice/communityserver | awk '{ print $3 }')\n\n**STEP 4** Run the new image with the same map paths\n\n\tsudo docker run -i -t -d --privileged -p 80:80 --cgroupns=host \\\n\t-e MYSQL_SERVER_ROOT_PASSWORD=my-secret-pw \\\n\t-e MYSQL_SERVER_DB_NAME=onlyoffice \\\n\t-e MYSQL_SERVER_HOST=onlyoffice-mysql-server \\\n\t-e MYSQL_SERVER_USER=onlyoffice_user \\\n\t-e MYSQL_SERVER_PASS=onlyoffice_pass \\\n\t-v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice  \\\n\t-v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \\\n\t-v /app/onlyoffice/CommunityServer/letsencrypt:/etc/letsencrypt \\\n\t-v /sys/fs/cgroup:/sys/fs/cgroup:rw onlyoffice/communityserver\n\n*This will update **Community Server** container only and will not connect **Document Server** and **Mail Server** to it. You will need to use the additional parameters (like those used during installation) to connect them.*\n\nOr you can use ONLYOFFICE Workspace script file to upgrade your current installation:\n```\nbash workspace-install.sh -u true\n```\n\nIt will update all the installed components automatically. If you want to update **Community Server** only, use the following command:\n```\nbash workspace-install.sh -u true -cv 9.1.0.393 -ids false -ims false\n```\nWhere `9.1.0.393` is the number of **Community Server** version which you are going to update to.\n\n## Connecting Your Own Modules\n\nYou can now create your own modules and connect them to ONLYOFFICE Community Server. See [this instruction](https://helpcenter.onlyoffice.com/installation/groups-custom-modules.aspx) for more details.\n\n## Project Information\n\nOfficial website: [https://www.onlyoffice.com](https://www.onlyoffice.com?utm_source=github\u0026utm_medium=cpc\u0026utm_campaign=GitHubDockerCS \"https://www.onlyoffice.com?utm_source=github\u0026utm_medium=cpc\u0026utm_campaign=GitHubDockerCS\")\n\nCode repository: [https://github.com/ONLYOFFICE/CommunityServer](https://github.com/ONLYOFFICE/CommunityServer \"https://github.com/ONLYOFFICE/CommunityServer\")\n\nLicense: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nONLYOFFICE Workspace: [https://www.onlyoffice.com/workspace.aspx](https://www.onlyoffice.com/workspace.aspx?utm_source=github\u0026utm_medium=cpc\u0026utm_campaign=GitHubDockerCS)\n\n## User feedback and support\n\nIf you have any problems with or questions about this image, please visit our official forum to find answers to your questions: [dev.onlyoffice.org][1] or you can ask and answer ONLYOFFICE development questions on [Stack Overflow][2].\n\n  [1]: http://dev.onlyoffice.org\n  [2]: http://stackoverflow.com/questions/tagged/onlyoffice\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FONLYOFFICE%2FDocker-CommunityServer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FONLYOFFICE%2FDocker-CommunityServer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FONLYOFFICE%2FDocker-CommunityServer/lists"}