change readme

This commit is contained in:
2020-08-06 23:43:00 +00:00
parent d94dc770d4
commit 1776165f84
+6 -5
View File
@@ -10,11 +10,11 @@ Clone git repository to local folder
## Configure
If you need to enable replication of mysql server, you need to run preconfigured mysql container.
1. If you need to enable replication of mysql server, you need to run preconfigured mysql container.
To do this, create config file with parameters for mysql slave server:
```
cat <<EOF > slave.cnf
```
[mysqld]
server-id = 102
@@ -32,9 +32,9 @@ bind-address = 0.0.0.0
```docker run --name slave-mariadb -v ./slave.cnf:/etc/mysql/conf.d/slave.cnf -e MYSQL_ROOT_PASSWORD=(the sama password as in master server) -d -p 3306:3306 mariadb:latest```
add FQDN name in ```docker-compose.yml``` file
1. add FQDN name in ```docker-compose.yml``` file
create file ```ireddocker/iredmail-env.conf```, like this:
1. create file ```ireddocker/iredmail-env.conf```, like this:
```
cat <<EOF > ireddocker/iredmail-env.conf
LDAP_EXTERNAL_USE=YES
@@ -56,13 +56,14 @@ CUSTOM_CERT_CERTFILE:=fullchain.pem
EOF
```
Create directory for mail and for certificates (default is ```mail_dir``` and ```cert_dir```. For other location this filder need to be change in ```docker-compose.yml``` file )
1. Create directory for mail and for certificates (default is ```mail_dir``` and ```cert_dir```. For other location this filder need to be change in ```docker-compose.yml``` file )
```
mkdir mail_dir
mkdir cert_dir
```
## RUN
```docker-compose up -d```