Change readme
This commit is contained in:
@@ -10,7 +10,9 @@ Clone git repository to local folder
|
|||||||
|
|
||||||
## Configure
|
## 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:
|
To do this, create config file with parameters for mysql slave server:
|
||||||
```
|
```
|
||||||
cat <<EOF > slave.cnf
|
cat <<EOF > slave.cnf
|
||||||
@@ -32,6 +34,7 @@ EOF
|
|||||||
... and run container from this directory:
|
... 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```
|
```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
|
1. add FQDN name in ```docker-compose.yml``` file
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user