Document, and Email Domain Setup Issues

Issues during installation and related to database
Post Reply
psi0991
Posts: 1
Joined: Mon May 06, 2019 5:59 pm

Document, and Email Domain Setup Issues

Post by psi0991 » Mon May 06, 2019 6:12 pm

Hi all,

I installed onlyoffice CE via Docker using the following compose file:

Code: Select all

version: '3'
services:
  onlyoffice-mysql-server:
    container_name: onlyoffice-mysql-server
    image: mysql:5.7.21
    environment:
     - MYSQL_ROOT_PASSWORD=nioH89097YbuObIU
    stdin_open: true
    tty: true
    restart: always
    volumes:
     - /data/onlyoffice/config/mysql/conf.d:/etc/mysql/conf.d
     - /data/onlyoffice/config/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
     - /storage/onlyoffice/mysql/data:/var/lib/mysql
  onlyoffice-community-server:
    container_name: onlyoffice-community-server
    image: onlyoffice/communityserver:latest
    depends_on:
     - onlyoffice-mysql-server
     - onlyoffice-document-server
     - onlyoffice-mail-server
    environment:
     - ONLYOFFICE_CORE_MACHINEKEY=core_secret
     - DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server
     - MYSQL_SERVER_ROOT_PASSWORD=
     - MYSQL_SERVER_DB_NAME=onlyoffice
     - MYSQL_SERVER_HOST=onlyoffice-mysql-server
     - MYSQL_SERVER_USER=onlyoffice_user
     - MYSQL_SERVER_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=
     - VIRTUAL_HOST=
     - VIRTUAL_NETWORK=nginx-proxy
     - VIRTUAL_PORT=80
     - LETSENCRYPT_HOST=
     - LETSENCRYPT_EMAIL=
    ports:
     - '8082:80'
     - '9444:443'
     - '5222:5222'
    stdin_open: true
    tty: true
    restart: always
    volumes:
     - /storage/onlyoffice/communitydata:/var/www/onlyoffice/Data
     - /data/onlyoffice/community/log:/var/log/onlyoffice
     - /storage/onlyoffice/document/data:/var/www/onlyoffice/DocumentServerData
     - /data/onlyoffice/community/certs:/var/www/onlyoffice/Data/certs
  onlyoffice-document-server:
    container_name: onlyoffice-document-server
    image: onlyoffice/documentserver:latest
    stdin_open: true
    tty: true
    restart: always
    expose:
      - '80'
      - '443'
    volumes:
       - /storage/onlyoffice/document/data:/var/www/onlyoffice/Data
       - /data/onlyoffice/document/logs:/var/log/onlyoffice
       - /data/onlyoffice/document/fonts:/usr/share/fonts/truetype/custom
       - /storage/onlyoffice/document/forgotten:/var/lib/onlyoffice/documentserver/App_Data/cache/files/forgotten
  onlyoffice-mail-server:
    container_name: onlyoffice-mail-server
    image: onlyoffice/mailserver:latest
    depends_on:
     - onlyoffice-mysql-server
    hostname: ${MAIL_SERVER_HOSTNAME}
    environment:
       - MYSQL_SERVER=onlyoffice-mysql-server
       - MYSQL_SERVER_PORT=3306
       - MYSQL_ROOT_USER=onlyoffice_mailserver_user
       - MYSQL_ROOT_PASSWD=onlyoffice_mailserver_user_pass
       - MYSQL_SERVER_DB_NAME=onlyoffice_mailserver
    restart: always
    privileged: true
    ports: ['25:25','143:143','587:587']
    stdin_open: true
    tty: true
    expose:
      - '8081'
    volumes:
      - /storage/onlyoffice/mail/data:/var/vmail
      - /data/onlyoffice/mail/certs:/etc/pki/tls/mailserver
      - /data/onlyoffice/mail/log:/var/log
networks:
  default:
    external:
      name: nginx-proxy
It runs fine except for me being unable to setup a domain. In Step 2 of the domain setup I noticed that the Text/Value for the MX record is just a dot, instead of a proper URL.
Selection_007.png
Selection_007.png (54.79 KiB) Viewed 351 times
I also can't access documents with the web tools, it gets stuck at "Loading Document" for a while and then displays "Download failed."
Selection_008.png
Selection_008.png (7.51 KiB) Viewed 351 times
I have Onlyoffice running behind a reverse proxy, which is why you see these additional lines in the compose file:

Code: Select all

     - VIRTUAL_HOST=
     - VIRTUAL_NETWORK=nginx-proxy
     - VIRTUAL_PORT=80
     - LETSENCRYPT_HOST=
     - LETSENCRYPT_EMAIL=
Any help would be appreciated.

Thanks!

Maxim
Posts: 2017
Joined: Tue Oct 11, 2016 2:34 pm

Re: Document, and Email Domain Setup Issues

Post by Maxim » Sun Aug 04, 2019 3:08 pm

Hello psi0991!
Is this problem actual for you at this moment?

Post Reply