github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/environments/orderer-1-kafka-3/docker-compose.yml (about) 1 version: '2' 2 services: 3 zookeeper: 4 image: hyperledger/fabric-zookeeper 5 6 orderer0: 7 image: hyperledger/fabric-testenv-orderer 8 environment: 9 - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 10 - ORDERER_GENERAL_GENESISPROFILE=SampleInsecureKafka 11 - CONFIGTX_ORDERER_KAFKA_BROKERS=[kafka0:9092,kafka1:9092,kafka2:9092] 12 - CONFIGTX_ORDERER_ORDERERTYPE=kafka 13 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer 14 command: orderer 15 ports: 16 - '7050' 17 depends_on: 18 - kafka0 19 - kafka1 20 - kafka2 21 22 kafka0: 23 image: hyperledger/fabric-kafka 24 environment: 25 KAFKA_BROKER_ID: 0 26 KAFKA_DEFAULT_REPLICATION_FACTOR: 3 27 KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE: "false" 28 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 29 depends_on: 30 - zookeeper 31 32 kafka1: 33 image: hyperledger/fabric-kafka 34 environment: 35 KAFKA_BROKER_ID: 1 36 KAFKA_DEFAULT_REPLICATION_FACTOR: 3 37 KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE: "false" 38 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 39 depends_on: 40 - zookeeper 41 42 kafka2: 43 image: hyperledger/fabric-kafka 44 environment: 45 KAFKA_BROKER_ID: 2 46 KAFKA_DEFAULT_REPLICATION_FACTOR: 3 47 KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE: "false" 48 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 49 depends_on: 50 - zookeeper