I have created a docker-compose file in order to deploy my FIWARE stack. That stack includes keyrock and a Mysql BD that are connected using the following subnet:
networks:
default:
ipam:
config:
- subnet: 172.18.1.0/24
I have created that subnet due to in keyrock documentation says that keyrock use the following ip: 172.18.1.5
I would like to change that keyrock IP and also change the subnet. How can I change the subnet? If I change the subnet and the keyrock and mysql defaul IP's there is no connection between them.
Presumably the documentation you are referring to is the sample docker-compose.yml file.
This defines an I.P. Address for keyrock (172.18.1.5) which is acceptable to the MySQL Database.
The MySQL 5.7 documentation states:
You can amend the I.P. Address and range to values of your own choosing, provided you also keep the docker ENV variable in line as well.