I would like to run mysql/mysql-server image in 3 different containers on the same host (End goal is to have innodb cluster running on the host for demo project). And instead of using bridge network and port mapping, I want the containers to start in host network mode.
But, since all 3 containers will be running on same host, I can't have more than one container using same host port.
This is the docker compose file
version: '3'
services:
mysql:
image: mysql/mysql-server
network_mode: "host"
Is it possible to modify docker compose file to achieve my objective? Any pointers would be really helpful!