From bec2c1f9bb2d6dc4b2027f03c4b6808ea5e5449a Mon Sep 17 00:00:00 2001 From: Evgeniy Antonyuk Date: Mon, 24 Apr 2023 12:48:01 +0500 Subject: [PATCH] fix Bug 58578 - Fix docker-compose on Debian 11 and Ubuntu 22.04 (#189) --- README.md | 4 +++- docker-compose.groups.yml | 1 + docker-compose.workspace.yml | 1 + docker-compose.workspace_enterprise.yml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c23c79..efa577e 100644 --- a/README.md +++ b/README.md @@ -449,7 +449,7 @@ wget https://download.onlyoffice.com/install/workspace-install.sh workspace-install.sh -md yourdomain.com ``` -Or use [docker-compose](https://docs.docker.com/compose/install "docker-compose"). `Temporarily does not work on Ubuntu 22.04 and Debian 11.` +Or use [docker-compose](https://docs.docker.com/compose/install "docker-compose"). First you need to clone this [GitHub repository](https://github.com/ONLYOFFICE/Docker-CommunityServer/): @@ -469,6 +469,8 @@ For the mail server correct work, open one of the files depending on the product * [docker-compose.yml](https://github.com/ONLYOFFICE/Docker-CommunityServer/blob/master/docker-compose.workspace.yml) for ONLYOFFICE Workspace Community Edition * [docker-compose.yml](https://github.com/ONLYOFFICE/Docker-CommunityServer/blob/master/docker-compose.workspace_enterprise.yml) for ONLYOFFICE Workspace Enterprise Edition +For working on `Ubuntu 22.04` and `Debian 11` or later, you need to use docker-compose versions v2.16.0 or later and uncomment the cgroup line in the yml file + Then replace the `${MAIL_SERVER_HOSTNAME}` variable with your own hostname for the **Mail Server**. After that, assuming you have docker-compose installed, execute the following command: ```bash diff --git a/docker-compose.groups.yml b/docker-compose.groups.yml index 8929feb..50649d5 100644 --- a/docker-compose.groups.yml +++ b/docker-compose.groups.yml @@ -41,6 +41,7 @@ services: tty: true restart: always privileged: true +# cgroup: host volumes: - community_data:/var/www/onlyoffice/Data - community_log:/var/log/onlyoffice diff --git a/docker-compose.workspace.yml b/docker-compose.workspace.yml index d07c4f3..7af2cf7 100644 --- a/docker-compose.workspace.yml +++ b/docker-compose.workspace.yml @@ -54,6 +54,7 @@ services: tty: true restart: always privileged: true +# cgroup: host volumes: - community_data:/var/www/onlyoffice/Data - community_log:/var/log/onlyoffice diff --git a/docker-compose.workspace_enterprise.yml b/docker-compose.workspace_enterprise.yml index 322f1ec..b2f142c 100644 --- a/docker-compose.workspace_enterprise.yml +++ b/docker-compose.workspace_enterprise.yml @@ -54,6 +54,7 @@ services: tty: true restart: always privileged: true +# cgroup: host volumes: - community_data:/var/www/onlyoffice/Data - community_log:/var/log/onlyoffice