I wrote docker-compose.yml:
version: '2.2' services:
mysql57:
image: mysql/mysql-server:5.7
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- /home/Docker/mysql5.7/mysql:/var/lib/mysql
ports:
- "127.0.0.11:3306:3306/tcp"
labels:
io.rancher.scheduler.affinity:host_label: server-fvs21=true
io.rancher.container.pull_image: always
mysql55:
image: mysql/mysql-server:5.5
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- /home/Docker/mysql5.5/mysql:/var/lib/mysql
ports:
- "127.0.0.1:3306:3306/tcp"
labels:
io.rancher.scheduler.affinity:host_label: server-fvs21=true
io.rancher.container.pull_image: alwa1ys
networks:
default:
That include 2 mysql(5.5,5.7). And now I have a problem whose solution requires changing mysql configs. Mysql config is situated in /home/Docker/config/my5.5.cnf and /home/Docker/config/my5.7.cnf But I change these files and nothing happens. How can I indicate the confrontational way to them in the docker-compose.yml. Thanks in advance