How to make data persistent and install on subdomain

La discussion des problèmes que vous avez rencontrés lors de l'utilisation ONLYOFFICE

How to make data persistent and install on subdomain

Message par bigdong » Jeu Oct 08, 2015 8:02 pm

Hi !

I am trying to install using docker-compose the onlyoffice suite on a server which has the hostname "mail.example.com"
The server which has the domain "example.com" is a different address.
I want to create email address for "@example.com", but only for @sub.example.com"

Here is my docker-compose.yml

Code : Tout sélectionner
communityserver:
  image: onlyoffice/communityserver
  restart: always
  links:
   - documentserver:document_server
   - mailserver:mail_server
  ports:
   - "80:80"
  volumes:
   - /opt/onlyoffice/Logs:/var/log/onlyoffice
   - /opt/onlyoffice/Data:/var/www/onlyoffice/Data
   - /opt/onlyoffice/MySQL:/var/lib/mysql
  stdin_open: true
  tty: true
documentserver:
  image: onlyoffice/documentserver
  restart: always
  stdin_open: true
  tty: true
mailserver:
  image: onlyoffice/mailserver
  restart: always
  hostname: mail.example.com
  privileged: true
  environment:
   - STORAGE_BASE_DIR=/var/vmail
   - FIRST_DOMAIN=mail.example.com
   - DOMAIN_ADMIN_PASSWD=D456aDZA1
  volumes:
   - /opt/onlyoffice/MailServer:/etc/pki/tls/mailserver
   - /opt/onlyoffice/VMail:/var/vmail
   - /opt/onlyoffice/MySQL_mail:/var/lib/mysql
  ports:
   - "25:25"
   - "143:143"
   - "587:587"
  stdin_open: true
  tty: true


I also had to do this on the docker host before to make the Data directory writable (not specified in the doc)

Code : Tout sélectionner
sudo mkdir -p /opt/onlyoffice/Data
sudo chmod 777 /opt/onlyoffice
sudo chmod 777 /opt/onlyoffice/Data


With this configuration, I am partially able to send email.

- I can only create a mail from the domain @mail.example.com and not @example.com
This config was working great on first install, but when i removed the image and kept the /opt/onlyoffice and recreated the image, I couldn't send and received mail anymore.

In all the documentation of onlyoffice they say to link twice /opt/onlyoffice/MySQL to /var/lib/mysql, one time for communityserver, one time for mailserver.
You cannot link two different database (community and mailserver) on the same host if the host directory is the same.

That's why i renamed the /opt/onlyoffice/MySQL to /opt/onlyoffice/MySQL_mail.
bigdong
 
Message(s) : 1
Inscription : Jeu Oct 08, 2015 7:55 pm

Re: How to make data persistent and install on subdomain

Message par Katarina » Jeu Oct 22, 2015 1:59 pm

Hello,

We would like to note, that this forum http://cloud.onlyoffice.org/ is devoted to discuss the questions regarding ONLYOFFICE SaaS version.
We invite you to leave your post on our another forum, which is devoted for ONLYOFFICE Free Server Edition: http://dev.onlyoffice.org/
Katarina
 
Message(s) : 25
Inscription : Lun Fév 09, 2015 11:37 am


Retour vers Les problèmes

Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 1 invité

cron