Installed Onlyoffice using Docker-compose and it's loading indefinetely

docker-compose

version: ‘3’
services:
onlyoffice-mysql-server:
container_name: onlyoffice-mysql-server
image: mysql:8.0.29
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
networks:
- onlyoffice
stdin_open: true
tty: true
restart: always
volumes:
- ./config/mysql/conf.d:/etc/mysql/conf.d
- ./config/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- mysql_data:/var/lib/mysql
onlyoffice-community-server:
container_name: onlyoffice-community-server
image: onlyoffice/communityserver:12.5.2.1848
depends_on:
- onlyoffice-mysql-server
- onlyoffice-document-server
- onlyoffice-mail-server
- onlyoffice-elasticsearch
environment:
- ONLYOFFICE_CORE_MACHINEKEY=core_secret
- CONTROL_PANEL_PORT_80_TCP=80
- CONTROL_PANEL_PORT_80_TCP_ADDR=onlyoffice-control-panel
- DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server
- DOCUMENT_SERVER_JWT_ENABLED=true
- DOCUMENT_SERVER_JWT_SECRET=jwt_secret
- DOCUMENT_SERVER_JWT_HEADER=AuthorizationJwt
- MYSQL_SERVER_ROOT_PASSWORD=my-secret-pw
- MYSQL_SERVER_DB_NAME=onlyoffice
- MYSQL_SERVER_HOST=onlyoffice-mysql-server
- MYSQL_SERVER_USER=onlyoffice_user
- MYSQL_SERVER_PASS=onlyoffice_pass
- MAIL_SERVER_API_PORT=8081
- MAIL_SERVER_API_HOST=onlyoffice-mail-server
- MAIL_SERVER_DB_HOST=onlyoffice-mysql-server
- MAIL_SERVER_DB_PORT=3306
- MAIL_SERVER_DB_NAME=onlyoffice_mailserver
- MAIL_SERVER_DB_USER=mail_admin
- MAIL_SERVER_DB_PASS=Isadmin123
- ELASTICSEARCH_SERVER_HOST=onlyoffice-elasticsearch
- ELASTICSEARCH_SERVER_HTTPPORT=9200
networks:
- onlyoffice
ports:
- ‘80:80’
- ‘443:443’
- ‘5222:5222’
stdin_open: true
tty: true
restart: always
privileged: true

cgroup: host

volumes:
 - community_data:/var/www/onlyoffice/Data
 - community_log:/var/log/onlyoffice
 - community_letsencrypt:/etc/letsencrypt
 - document_data:/var/www/onlyoffice/DocumentServerData
 - /sys/fs/cgroup:/sys/fs/cgroup:rw
 - ./certs:/var/www/onlyoffice/Data/certs

onlyoffice-elasticsearch:
image: onlyoffice/elasticsearch:7.16.3
container_name: onlyoffice-elasticsearch
restart: always
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- “ES_JAVA_OPTS=-Xms1g -Xmx1g -Dlog4j2.formatMsgNoLookups=true”
- “indices.fielddata.cache.size=30%”
- “indices.memory.index_buffer_size=30%”
- “ingest.geoip.downloader.enabled=false”
networks:
- onlyoffice
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65535
hard: 65535
volumes:
- es_data:/usr/share/elasticsearch/data
expose:
- “9200”
- “9300”
onlyoffice-document-server:
container_name: onlyoffice-document-server
image: onlyoffice/documentserver:7.5.1.1
stdin_open: true
tty: true
restart: always
environment:
- JWT_ENABLED=true
- JWT_SECRET=jwt_secret
- JWT_HEADER=AuthorizationJwt
networks:
- onlyoffice
expose:
- ‘80’
- ‘443’
volumes:
- document_data:/var/www/onlyoffice/Data
- document_log:/var/log/onlyoffice
- ./document_fonts:/usr/share/fonts/truetype/custom
- document_forgotten:/var/lib/onlyoffice/documentserver/App_Data/cache/files/forgotten
onlyoffice-mail-server:
container_name: onlyoffice-mail-server
image: onlyoffice/mailserver:1.6.75
depends_on:
- onlyoffice-mysql-server
hostname: kali
environment:
- MYSQL_SERVER=onlyoffice-mysql-server
- MYSQL_SERVER_PORT=3306
- MYSQL_ROOT_USER=mail_admin
- MYSQL_ROOT_PASSWD=Isadmin123
- MYSQL_SERVER_DB_NAME=onlyoffice_mailserver
networks:
- onlyoffice
restart: always
privileged: true
ports: [‘25:25’,‘143:143’,‘587:587’]
stdin_open: true
tty: true
expose:
- ‘8081’
- ‘3306’
volumes:
- mail_data:/var/vmail
- mail_certs:/etc/pki/tls/mailserver
- mail_log:/var/log
onlyoffice-control-panel:
container_name: onlyoffice-control-panel
depends_on:
- onlyoffice-document-server
- onlyoffice-mail-server
- onlyoffice-community-server
image: onlyoffice/controlpanel:3.5.0.516
environment:
- ONLYOFFICE_CORE_MACHINEKEY=core_secret
expose:
- ‘80’
- ‘443’
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- controlpanel_data:/var/www/onlyoffice/Data
- controlpanel_log:/var/log/onlyoffice
networks:
- onlyoffice
stdin_open: true
tty: true
networks:
onlyoffice:
driver: ‘bridge’
volumes:
mail_data:
mail_certs:
mail_log:
mail_mysql:
document_data:
document_log:
document_forgotten:
community_mysql:
community_data:
community_log:
community_letsencrypt:
controlpanel_data:
controlpanel_log:
mysql_data:
es_data:

Hello @palprmod
You have to uncomment line 57 (#cgroup: host). Anyway, please try this compose sample: ---version: '3'services: onlyoffice-mysql-server: container_name: on - Pastebin.com
It has been tested and it worked as expected.
If you are still facing an issue, please let us know your docker-compose and OS versions.

Hello, thanks for your reply. It is still loading indefinitely. I copied and pasted the file you provided. I am running this using Kali Linux 2023.4 and docker-compose version 1.29.2, build 5becea4c

And also i’d like to know if onlyoffice workspace would work if i install it on windows server 2022 as a virtual machine (using vmware)

Hello,

As far as I understand, Kali OS is based on Debian. Please check this title: GitHub - ONLYOFFICE/Docker-CommunityServer: Collaborative system for managing documents, projects, customer relations and emails in one place
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
Please try to use v.2.16 (or later) version of docker compose.
Please let us know the result.

And also i’d like to know if onlyoffice workspace would work if i install it on windows server 2022 as a virtual machine (using vmware)

Yes, it would work. Please follow this guide: Installing ONLYOFFICE Workspace for Windows on a local server - ONLYOFFICE

Ok thanks. I have installed windows server 2016 in vmware workstation pro 17. When installing i have trouble with postgressql installation: i installed it manually but it still won’t work( I installed v13 as i can’t seem to find v12.9 exactly)

Hello @palprmod
Go to %ProgramFiles%\PostgreSQL\9.6\pgAdmin 4\bin\ and execute pgAdmin4.exe > In the left side of opened window choose PostgreSQL > try to use password onlyoffice. Do you see any tables that are related to the portal? I mean these ones:
2222

i installed it manually but it still won’t work

Please describe the situation as detailed as possible. Do I understand it right that you installed PostgreSQL manually > ran installation process again and faced the issue from your screenshot. Is this correct?

Hello @Alexandre,

Yes exactly. i installed postgressql manually ican’t even see the 'onlyoffice" database when i open pg4admin. Should i create it myself in pg4admin then start the installation of the onlyoffice.exe once again?

No, it’s better to start from scratch. Is it possible to rollback entire server to initial state? If so, please run the installation process one more time and record your steps.

ok i’ll do that and get back to you. Thanks so far

Ok, please keep us posted.