title: Couchdb port mapping in yaml file for Hyperledger Fabric V1.0 network setup
body: <p>Can someone please explain the port mapping in this <a href="https://github.com/hyperledger/fabric-samples/blob/release/first-network/docker-compose-couch.yaml" rel="nofollow noreferrer">docker-compose-couch.yaml</a>. </p>
  
  <p>Please look into the following</p>
  
  <blockquote>
    <p><strong>container_name: couchdb0</strong> <br/>-ports: <br/>- "5984:5984" <br/>-- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984</p>
    
    <p><strong>container_name: couchdb1</strong> <br/>-ports: <br/>-- "6984:5984" <br/>-- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984</p>
    
    <p><strong>container_name: couchdb2</strong> <br/>-ports: <br/>-- "7984:5984" <br/>-- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984</p>
    
    <p><strong>container_name: couchdb3</strong> <br/>-ports: <br/>-- "8984:5984" <br/>-- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984</p>
  </blockquote>
  
  <ol>
  <li>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?</li>
  </ol>
  
  <p>Also after making the transaction, when I check the db using <strong>Fauxton UI</strong> using the below URLs</p>
  
  <p><a href="http://192.168.99.100:5984/_utils/#/database/mydemochannel/_all_docs" rel="nofollow noreferrer">http://192.168.99.100:5984/_utils/#/database/mydemochannel/_all_docs</a>
  <a href="http://192.168.99.100:6984/_utils/#/database/mydemochannel/_all_docs" rel="nofollow noreferrer">http://192.168.99.100:6984/_utils/#/database/mydemochannel/_all_docs</a>
  <a href="http://192.168.99.100:7984/_utils/#/database/mydemochannel/_all_docs" rel="nofollow noreferrer">http://192.168.99.100:7984/_utils/#/database/mydemochannel/_all_docs</a>
  <a href="http://192.168.99.100:8984/_utils/#/database/mydemochannel/_all_docs" rel="nofollow noreferrer">http://192.168.99.100:8984/_utils/#/database/mydemochannel/_all_docs</a>
  <br/>(<em>192.168.99.100</em> is my virtual machine IP on <strong>windows 7</strong> machine)</p>
  
  <p>all showing the same data.</p>
  
  <ol start="2">
  <li>My doubt here is, it displaying encrypted data or plain text values in <strong>Fauxton UI</strong>? Once I tick the <strong>Include Doc</strong>s 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?</li>
  </ol>