Open kareemkemoo95 opened 1 month ago
issue during integrate explorer with network.
explorer
SPDX-License-Identifier: Apache-2.0 version: '2.1'
volumes: pgdata: walletstore:
networks: pharma: name: network_pharmacy external: true
services:
explorerdb.pharma-network.com: image: hyperledger/explorer-db:1.1.6 container_name: explorerdb.pharma-network.com hostname: explorerdb.pharma-network.com environment:
DATABASE_DATABASE=fabricexplorer DATABASE_USERNAME=hppoc DATABASE_PASSWORD=password healthcheck: test: "pg_isready -h localhost -p 5432 -q -U postgres" interval: 30s timeout: 10s retries: 5 volumes: pgdata:/var/lib/postgresql/data networks: pharma explorer.pharma-network.com: image: hyperledger/explorer:1.1.6 container_name: explorer.pharma-network.com hostname: explorer.pharma-network.com environment:
DATABASE_HOST=explorerdb.pharma-network.com DATABASE_DATABASE=fabricexplorer DATABASE_USERNAME=hppoc DATABASE_PASSWD=password LOG_LEVEL_APP=debug LOG_LEVEL_DB=debug LOG_LEVEL_CONSOLE=info LOG_CONSOLE_STDOUT=true DISCOVERY_AS_LOCALHOST=false volumes: ./config.json:/opt/explorer/app/platform/fabric/config.json ./connection-profile:/opt/explorer/app/platform/fabric/connection-profile ./crypto-config:/tmp/crypto walletstore:/opt/explorer/wallet ports: "8080:8080" depends_on: explorerdb.pharma-network.com: condition: service_healthy networks: pharma
{ "name": "network_pharmacy", "version": "1.0.0", "client": { "tlsEnable": true, "adminCredential": { "id": "admin", "password": "adminpw" }, "enableAuthentication": true, "organization": "retailerMSP", "connection": { "timeout": { "peer": { "endorser": "300" }, "orderer": "300" } } }, "channels": { "pharmachannel": { "peers": { "peer0.retailer.pharma-network.com": {} } } }, "organizations": { "retailerMSP": { "mspid": "retailerMSP", "adminPrivateKey": { "path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/users/Admin@retailer.pharma-network.com/msp/keystore/priv_sk" }, "peers": [ "peer0.retailer.pharma-network.com" ], "signedCert": { "path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/users/Admin@retailer.pharma-network.com/msp/signcerts/Admin@retailer.pharma-network.com-cert.pem" } } }, "peers": { "peer0.retailer.pharma-network.com": { "tlsCACerts": { "path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/peers/peer0.retailer.pharma-network.com/tls/ca.crt" }, "url": "grpc://peer0.retailer.pharma-network.com:7051" } } }
Sorry mate, it's been a long time since I worked on this. If you figure it out you can raise a PR but I am not actively working on this
issue during integrate explorer with network.
explorer
content of explorer docker-compose file :
SPDX-License-Identifier: Apache-2.0 version: '2.1'
volumes: pgdata: walletstore:
networks: pharma: name: network_pharmacy external: true
services:
explorerdb.pharma-network.com: image: hyperledger/explorer-db:1.1.6 container_name: explorerdb.pharma-network.com hostname: explorerdb.pharma-network.com environment:
DATABASE_DATABASE=fabricexplorer DATABASE_USERNAME=hppoc DATABASE_PASSWORD=password healthcheck: test: "pg_isready -h localhost -p 5432 -q -U postgres" interval: 30s timeout: 10s retries: 5 volumes: pgdata:/var/lib/postgresql/data networks: pharma explorer.pharma-network.com: image: hyperledger/explorer:1.1.6 container_name: explorer.pharma-network.com hostname: explorer.pharma-network.com environment:
DATABASE_HOST=explorerdb.pharma-network.com DATABASE_DATABASE=fabricexplorer DATABASE_USERNAME=hppoc DATABASE_PASSWD=password LOG_LEVEL_APP=debug LOG_LEVEL_DB=debug LOG_LEVEL_CONSOLE=info LOG_CONSOLE_STDOUT=true DISCOVERY_AS_LOCALHOST=false volumes: ./config.json:/opt/explorer/app/platform/fabric/config.json ./connection-profile:/opt/explorer/app/platform/fabric/connection-profile ./crypto-config:/tmp/crypto walletstore:/opt/explorer/wallet ports: "8080:8080" depends_on: explorerdb.pharma-network.com: condition: service_healthy networks: pharma
connection profile content ::
{ "name": "network_pharmacy", "version": "1.0.0", "client": { "tlsEnable": true, "adminCredential": { "id": "admin", "password": "adminpw" }, "enableAuthentication": true, "organization": "retailerMSP", "connection": { "timeout": { "peer": { "endorser": "300" }, "orderer": "300" } } }, "channels": { "pharmachannel": { "peers": { "peer0.retailer.pharma-network.com": {} } } }, "organizations": { "retailerMSP": { "mspid": "retailerMSP", "adminPrivateKey": { "path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/users/Admin@retailer.pharma-network.com/msp/keystore/priv_sk" }, "peers": [ "peer0.retailer.pharma-network.com" ], "signedCert": { "path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/users/Admin@retailer.pharma-network.com/msp/signcerts/Admin@retailer.pharma-network.com-cert.pem" } } }, "peers": { "peer0.retailer.pharma-network.com": { "tlsCACerts": { "path": "/tmp/crypto/peerOrganizations/retailer.pharma-network.com/peers/peer0.retailer.pharma-network.com/tls/ca.crt" }, "url": "grpc://peer0.retailer.pharma-network.com:7051" } } }