1 Star 0 Fork 0

karry_ii/blockchain-explorer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yaml 2.36 KB
一键复制 编辑 原始数据 按行查看 历史
ryjones 提交于 2020-03-16 18:58 . Update docker-compose.yaml (#88)
# SPDX-License-Identifier: Apache-2.0
version: '2.1'
volumes:
pgdata:
walletstore:
grafana-storage:
prometheus-storage:
networks:
mynetwork.com:
external:
name: net_byfn
services:
explorerdb.mynetwork.com:
image: hyperledger/explorer-db:latest
container_name: explorerdb.mynetwork.com
hostname: explorerdb.mynetwork.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:
- mynetwork.com
explorer.mynetwork.com:
image: hyperledger/explorer:latest
container_name: explorer.mynetwork.com
hostname: explorer.mynetwork.com
environment:
- DATABASE_HOST=explorerdb.mynetwork.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:
- ./examples/net1/config.json:/opt/explorer/app/platform/fabric/config.json
- ./examples/net1/connection-profile:/opt/explorer/app/platform/fabric/connection-profile
- ./examples/net1/crypto:/tmp/crypto
- walletstore:/opt/wallet
command: sh -c "node /opt/explorer/main.js && tail -f /dev/null"
ports:
- 8090:8080
depends_on:
explorerdb.mynetwork.com:
condition: service_healthy
networks:
- mynetwork.com
proms:
container_name: proms
image: prom/prometheus:latest
volumes:
- ./app/platform/fabric/artifacts/operations/balance-transfer/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-storage:/prometheus
ports:
- '9090:9090'
networks:
- mynetwork.com
grafana:
container_name: grafana
image: grafana/grafana:latest
volumes:
- ./app/platform/fabric/artifacts/operations/balance-transfer/balance-transfer-grafana-dashboard.json:/var/lib/grafana/dashboards/mydashboard.json
- ./app/platform/fabric/artifacts/operations/grafana_conf/provisioning:/etc/grafana/provisioning
- grafana-storage:/var/lib/grafana
ports:
- '3000:3000'
networks:
- mynetwork.com
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/karry_ii/blockchain-explorer.git
[email protected]:karry_ii/blockchain-explorer.git
karry_ii
blockchain-explorer
blockchain-explorer
master

搜索帮助