Can someone please explain the port mapping in this docker-compose-couch.yaml.
Please look into the following
container_name: couchdb0
-ports:
- "5984:5984"
-- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984container_name: couchdb1
-ports:
-- "6984:5984"
-- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984container_name: couchdb2
-ports:
-- "7984:5984"
-- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984container_name: couchdb3
-ports:
-- "8984:5984"
-- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984
- Here why all the addresses mapping to the same port 5984? is it using the same DB instead of using separate DB for each peer?
Also after making the transaction, when I check the db using Fauxton UI using the below URLs
http://192.168.99.100:5984/_utils/#/database/mydemochannel/_all_docs
http://192.168.99.100:6984/_utils/#/database/mydemochannel/_all_docs
http://192.168.99.100:7984/_utils/#/database/mydemochannel/_all_docs
http://192.168.99.100:8984/_utils/#/database/mydemochannel/_all_docs
(192.168.99.100 is my virtual machine IP on windows 7 machine)
all showing the same data.
- My doubt here is, it displaying encrypted data or plain text values in Fauxton UI? Once I tick the Include Docs check box, it is showing the value also. As per my understanding the values will be encrypted based on peers signature(please correct me if I am wrong), then how it is showing the value as plain text jason?