每个容器都有目录需要映射出来。在volume中添加如下映射即可:
peer是:
- /var/hyperledger/peer{number}/org{number}:/var/hyperledger/production
orderer是:
- /var/hyperledger/orderer:/var/hyperledger/production
zk是:
-
/var/hyperledger/zk{number}/data:/data
-
/var/hyperledger/zk{number}/datalog:/datalog
kafka:
- /var/hyperledger/kafka{number}:/tmp/kafka-logs
couchdb:
- /var/hyperledger/couchdb{number}:/opt/couchdb/data