Change readme

This commit is contained in:
root
2020-08-07 21:12:00 +00:00
parent 999d9f81af
commit bbce4d950e
+4 -1
View File
@@ -10,7 +10,9 @@ Clone git repository to local folder
## Configure
1. If you need to enable replication of mysql server, you need to run preconfigured mysql container.
### Config on slave server
1. If you need to enable replication of mysql server, you need to run preconfigured mysql slave container on slave server.
To do this, create config file with parameters for mysql slave server:
```
cat <<EOF > slave.cnf
@@ -32,6 +34,7 @@ EOF
... and run container from this directory:
```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```
### Config on master server
1. add FQDN name in ```docker-compose.yml``` file