Open Echsecutor opened 2 years ago
Problem: https://github.com/hyperledger/indy-node-container/blob/main/controller/upgrade_indy.sh#L58 expects fixed IP for container
While fixing this issue another problem has become visible. We are currently using an internal service network for the communication between node and controller for ease of configuration. Internally the controller refers to the container with its ID in the network settings. Upgrading the node results in a new ID and thus the controller uses its network connectivity.
We either have to use fixed IPs which afaik is not the best practice or use dns. The later requires the node to know the controllers hostname and write it into indy_config.py
for controlServiceHost
.
Should I proceed with this solution?
Decision for fix:
network_mode: "service:indy-node"
+ access via localhost but use dockers default networking + access via hostname=container name
@c2bo had problems upgrading via the controller container:
usgin the
docker-compose.yml
@tsurai could you have a look at this?