past_binner

docker-compose-couch.yaml

May 8th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 KB | None | 0 0
  1. # Copyright IBM Corp. All Rights Reserved.
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. #
  5.  
  6. version: '2'
  7.  
  8. networks:
  9. byfn:
  10.  
  11. services:
  12. couchdb0:
  13. container_name: couchdb0
  14. image: hyperledger/fabric-couchdb
  15. # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password
  16. # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.
  17. environment:
  18. - COUCHDB_USER=
  19. - COUCHDB_PASSWORD=
  20. # Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
  21. # for example map it to utilize Fauxton User Interface in dev environments.
  22. ports:
  23. - "5984:5984"
  24. networks:
  25. - byfn
  26.  
  27. peer0.org1.example.com:
  28. environment:
  29. - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
  30. - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984
  31. # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD
  32. # provide the credentials for ledger to connect to CouchDB. The username and password must
  33. # match the username and password set for the associated CouchDB.
  34. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
  35. - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
  36. depends_on:
  37. - couchdb0
  38.  
  39. couchdb1:
  40. container_name: couchdb1
  41. image: hyperledger/fabric-couchdb
  42. # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password
  43. # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.
  44. environment:
  45. - COUCHDB_USER=
  46. - COUCHDB_PASSWORD=
  47. # Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
  48. # for example map it to utilize Fauxton User Interface in dev environments.
  49. ports:
  50. - "6984:5984"
  51. networks:
  52. - byfn
  53.  
  54. peer1.org1.example.com:
  55. environment:
  56. - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
  57. - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984
  58. # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD
  59. # provide the credentials for ledger to connect to CouchDB. The username and password must
  60. # match the username and password set for the associated CouchDB.
  61. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
  62. - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
  63. depends_on:
  64. - couchdb1
  65.  
  66. couchdb2:
  67. container_name: couchdb2
  68. image: hyperledger/fabric-couchdb
  69. # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password
  70. # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.
  71. environment:
  72. - COUCHDB_USER=
  73. - COUCHDB_PASSWORD=
  74. # Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
  75. # for example map it to utilize Fauxton User Interface in dev environments.
  76. ports:
  77. - "7984:5984"
  78. networks:
  79. - byfn
  80.  
  81. peer0.org2.example.com:
  82. environment:
  83. - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
  84. - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984
  85. # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD
  86. # provide the credentials for ledger to connect to CouchDB. The username and password must
  87. # match the username and password set for the associated CouchDB.
  88. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
  89. - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
  90. depends_on:
  91. - couchdb2
  92.  
  93. couchdb3:
  94. container_name: couchdb3
  95. image: hyperledger/fabric-couchdb
  96. # Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password
  97. # for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.
  98. environment:
  99. - COUCHDB_USER=
  100. - COUCHDB_PASSWORD=
  101. # Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
  102. # for example map it to utilize Fauxton User Interface in dev environments.
  103. ports:
  104. - "8984:5984"
  105. networks:
  106. - byfn
  107.  
  108. peer1.org2.example.com:
  109. environment:
  110. - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
  111. - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984
  112. # The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD
  113. # provide the credentials for ledger to connect to CouchDB. The username and password must
  114. # match the username and password set for the associated CouchDB.
  115. - CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
  116. - CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
  117. depends_on:
  118. - couchdb3
Add Comment
Please, Sign In to add comment