mirror of
https://github.com/vbabak/docker-mysql-master-slave.git
synced 2026-05-02 17:43:32 +02:00
Update docker-compose.yml
Correcting the MySQL port in docker-compose.yml to be possible to connect into mysql_master and mysql_slave from the host on the 4406 and 5506 ports.
This commit is contained in:
parent
3de1538f07
commit
a027d49e89
@ -9,7 +9,7 @@ services:
|
||||
container_name: "mysql_master"
|
||||
restart: "no"
|
||||
ports:
|
||||
- 4406:4406
|
||||
- 4406:3306
|
||||
volumes:
|
||||
- ./master/conf/mysql.conf.cnf:/etc/mysql/conf.d/mysql.conf.cnf
|
||||
- ./master/data:/var/lib/mysql
|
||||
@ -23,7 +23,7 @@ services:
|
||||
container_name: "mysql_slave"
|
||||
restart: "no"
|
||||
ports:
|
||||
- 5506:5506
|
||||
- 5506:3306
|
||||
volumes:
|
||||
- ./slave/conf/mysql.conf.cnf:/etc/mysql/conf.d/mysql.conf.cnf
|
||||
- ./slave/data:/var/lib/mysql
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user