github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/regression/go/ote/network.json (about)

     1  {
     2      "ordererAddress": "0.0.0.0",
     3      "ordererPort": "5005",
     4      "couchdbAddress": "0.0.0.0",
     5      "couchdbPort": "5984",
     6      "vp0Address": "0.0.0.0",
     7      "vp0Port": "7061",
     8      "version": "2",
     9      "networks":
    10              "bridge",
    11      "services": {
    12          "zookeeper": {
    13              "image": "hyperledger/fabric-zookeeper",
    14              "container_name": "zookeeper",
    15              "networks": [
    16                   "bridge"
    17              ]
    18          },
    19          "kafka": {
    20              "image": "hyperledger/fabric-kafka",
    21              "environment": {
    22                   "KAFKA_BROKER_ID": "0",
    23                   "KAFKA_ZOOKEEPER_CONNECT": "zookeeper:2181",
    24                   "KAFKA_DEFAULT_REPLICATION_FACTOR": "3"
    25              },
    26              "depends_on": [
    27                   "zookeeper"
    28              ],
    29              "container_name": "kafka0",
    30              "networks": [
    31                   "bridge"
    32              ]
    33          },
    34          "ca": {
    35              "image": "hyperledger/fabric-ca",
    36              "command": "sh -c 'fabric-ca server start -ca /.fabric-ca/ec.pem -ca-key /.fabric-ca/ec-key.pem -config /etc/hyperledger/fabric-ca/server-config.json -address 0.0.0.0'",
    37              "ports": [
    38                   "7054:7054"
    39              ],
    40              "container_name": "ca0"
    41          },
    42          "orderer": {
    43              "image": "hyperledger/fabric-orderer",
    44              "restart": "unless-stopped",
    45              "environment": {
    46                  "ORDERER_GENERAL_LEDGERTYPE": "ram",
    47                  "ORDERER_GENERAL_MAXWINDOWSIZE": "1000",
    48                  "ORDERER_GENERAL_LISTENADDRESS": "0.0.0.0",
    49                  "ORDERER_GENERAL_LISTENPORT": "5005",
    50                  "ORDERER_GENERAL_GENESISMETHOD": "provisional",
    51                  "ORDERER_GENERAL_GENESISFILE": "./genesisblock",
    52                  "ORDERER_RAMLEDGER_HISTORY_SIZE": "100",
    53                  "CONFIGTX_ORDERER_ORDERERTYPE": "kafka",
    54                  "CONFIGTX_ORDERER_ADDRESSES": "[0.0.0.0:5005]",
    55                  "CONFIGTX_ORDERER_BATCHTIMEOUT": "10s",
    56                  "CONFIGTX_ORDERER_BATCHSIZE_MAXMESSAGECOUNT": "10",
    57                  "CONFIGTX_ORDERER_KAFKA_BROKERS": "0.0.0.0:9092"
    58              },
    59              "working_dir": "/opt/gopath/src/github.com/hyperledger/fabric/orderer",
    60              "command": "orderer",
    61              "ports": [
    62                   "5005:5005"
    63              ],
    64              "depends_on": [
    65                   "zookeeper",
    66                   "kafka0"
    67              ],
    68              "container_name": "orderer0",
    69              "networks": [
    70                   "bridge"
    71              ]
    72          },
    73          "couchdb": {
    74              "image": "hyperledger/fabric-couchdb",
    75              "command": "tini -- /docker-entrypoint.sh /opt/couchdb/bin/couchdb",
    76              "ports": [
    77                   "DBPORT:5984"
    78              ],
    79              "networks": [
    80                   "bridge"
    81              ],
    82              "container_name": "couchdb"
    83          },
    84          "peer": {
    85              "image": "hyperledger/fabric-peer",
    86              "restart": "unless-stopped",
    87              "environment": {
    88                   "CORE_PEER_ID": "peer",
    89                   "CORE_PEER_NETWORKID": "${CORE_PEER_ID}",
    90                   "CORE_PEER_ADDRESSAUTODETECT": "false",
    91                   "CORE_NEXT": "true",
    92                   "CORE_PEER_ENDORSER_ENABLED": "true",
    93                   "CORE_PEER_ADDRESS": "0.0.0.0:PORTID",
    94                   "CORE_PEER_NETWORKID": "${CORE_PEER_NETWORKID}",
    95                   "CORE_PEER_COMMITTER_ENABLED": "true",
    96                   "CORE_PEER_COMMITTER_LEDGER_ORDERER": "orderer:5005",
    97                   "CORE_PEER_PROFILE_ENABLED": "true",
    98                   "CORE_PEER_DISCOVERY_PERIOD": "60s",
    99                   "CORE_PEER_DISCOVERY_TOUCHPERIOD": "60s",
   100                   "CORE_PEER_DISCOVERY_ROOTNODE": "peer0:7051",
   101                   "CORE_VM_ENDPOINT": "unix:///host/var/run/docker.sock",
   102                   "CORE_LEDGER_STATE_STATEDATABASE": "CouchDB",
   103                   "CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS": "couchdb0:5984",
   104                   "CORE_SECURITY_LEVEL": "256",
   105                   "CORE_SECURITY_HASHALGORITHM": "SHA2",
   106                   "CORE_LOGGING_LEVEL": "ERROR"
   107              },
   108              "working_dir": "/opt/gopath/src/github.com/hyperledger/fabric/peer",
   109              "volumes": [
   110                    "/var/run:/host/var/run/"
   111              ],
   112              "command": "peer node start",
   113              "links": [
   114                    "orderer",
   115                    "peer0",
   116                    "peer1",
   117                    "peer2"
   118              ],
   119              "ports": [
   120                    "PORTID:7051"
   121              ],
   122              "container_name": "vpID",
   123              "networks": [
   124                   "bridge"
   125              ]
   126          },
   127          "cli": {
   128              "container_name": "cli",
   129              "image": "hyperledger/fabric-peer",
   130              "tty": "true",
   131              "environment": {
   132                    "GOPATH":"/opt/gopath",
   133                    "CORE_PEER_ADDRESSAUTODETECT":"true",
   134                    "CORE_VM_ENDPOINT":"unix:///host/var/run/docker.sock",
   135                    "CORE_LOGGING_LEVEL":"ERROR",
   136                    "CORE_NEXT":"true",
   137                    "CORE_PEER_ID":"cli",
   138                    "CORE_PEER_ENDORSER_ENABLED":"true",
   139                    "CORE_PEER_COMMITTER_LEDGER_ORDERER":"orderer:5005",
   140                    "CORE_PEER_ADDRESS":"peer0:7051"
   141              },
   142              "working_dir": "/opt/gopath/src/github.com/hyperledger/fabric/peer",
   143              "command": "/bin/sh",
   144              "links": [
   145                    "orderer0:orderer0",
   146                    "peer0:peer0"
   147              ],
   148              "volumes": [
   149                      "/var/run/:/host/var/run/",
   150                      "/opt/gopath/src/github.com/hyperledger/fabric/examples/:/opt/gopath/src/github.com/hyperledger/fabric/examples/"
   151              ],
   152              "depends_on": [
   153                    "orderer0",
   154                    "peer0"
   155              ],
   156              "networks": [
   157                    "bridge"
   158              ]
   159          }
   160      }
   161  }