Commit 56a6ddb7 authored by vicotor's avatar vicotor

add first version

parents
Pipeline #621 canceled with stages
grpc_addr = ":38001"
chain_id = 100
version: "3.9"
services:
net:
image: net
container_name: net
entrypoint: /root/MetaNet --single-node --enable-prom
ports:
- 38010:38010
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 100
window: 120s
txchecker:
image: txchecker
container_name: txchecker
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 100
window: 120s
sentry:
image: sentry
container_name: sentry
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 100
window: 120s
volumes:
- ./sentry/app.json:/root/app.json
nebula:
image: nebula
container_name: nebula
depends_on:
- net
- sentry
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 100
window: 120s
volumes:
- ./nebula/config.toml:/root/config.toml
- ./nebula/genesis.json:/root/genesis.json
- ./nebula/data:/root/data
cryptor:
image: cryptor
container_name: cryptor
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 100
window: 120s
volumes:
- ./cryptor/config.toml:/root/config.toml
ring:
image: ring
container_name: ring
depends_on:
- net
- sentry
- nebula
- cryptor
deploy:
# resources:
# limits:
# cpus: "20.00"
# memory: 20G
# reservations:
# cpus: "16.00"
# memory: 16G
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 100
window: 120s
ports:
- 18545:8545
- 5001:5001
volumes:
- ./metaring/.metaring:/root/.metaring/
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- cadvisor
cadvisor:
#image: gcr.io/cadvisor/cadvisor:latest
image: google/cadvisor:latest
container_name: cadvisor
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
depends_on:
- ring
- net
- sentry
- txchecker
- cryptor
- nebula
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or
# relative to the home directory (e.g. "data"). The home directory is
# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable
# or --home cmd flag.
#######################################################################
### Main Base Config Options ###
#######################################################################
enabletest = false
#######################################################
### RPC Server Configuration Options ###
#######################################################
# TCP or UNIX socket address for the gRPC server to listen on
# NOTE: This server only supports /broadcast_tx_commit
grpc-laddr = "0.0.0.0"
grpc-lport = 5001
async = true
broadcasttimeout = 10
pprof-laddr = "0.0.0.0:6060"
#######################################################
### Mempool Configuration Options ###
#######################################################
checkerurl = "txchecker:38002"
cryptourl = "cryptor:38001"
nebulaurl = "nebula:38004"
p2purl = "net:38010"
sentryurl = "sentry:38003"
cryptonum = 16
maxlimit = 10000000
takebatchsize = 500
timeoutbroadcastbatchtx = 10
privatekey = "private key"
#######################################################################
### Eth Config Options ###
#######################################################################
enableweb3 = true
HTTPHost = "localhost"
HTTPPort = 8545
WSHost = "localhost"
WSPort = 8546
httpmodules = "admin,web3,eth,txpool,debug,miner,net"
wsmodules = "admin,web3,eth,txpool,debug,miner,net"
#######################################################
### Instrumentation Configuration Options ###
#######################################################
[instrumentation]
# When true, Prometheus metrics are served under /metrics on
# PrometheusListenAddr.
# Check out the documentation for the list of available metrics.
prometheus = true
# Address to listen for Prometheus collector(s) connections
prometheus_listen_addr = ":38020"
# Maximum number of simultaneous connections.
# If you want to accept a larger number than the default, make sure
# you increase your OS limits.
# 0 - unlimited.
max_open_connections = 10
# Instrumentation namespace
namespace = "metaring"
p2p_server = "net:38010"
sentry_server = "sentry:38003"
grpc_addr = ":38004"
chain_id = 100
{
"miner": "0x905D5E8F7db76bCA91fdcA0990be7263dfD23335",
"timestamp": 1676518132,
"extraData": "0x",
"accounts": {
"0x0000000000000000000000000000000000000001": {
"nonce": "0",
"balance":"10000000000000000000000"
},
"0x905D5E8F7db76bCA91fdcA0990be7263dfD23335": {
"nonce": "10",
"balance": "0x20000000000"
},
"0x64fB93d7eBEa9fae570F2852C270F137cF60ba90": {
"nonce": "0",
"balance": "0x200000000000000000000000000"
},
"0x78328fa01CEE3B31129f85b6174a28C42c85fbBF":{
"nonce": "0",
"balance": "0x2000000000000000000000000000"
},
"0xc49926c4124cee1cba0ea94ea31a6c12318df947":{
"nonce": "0",
"balance": "0x2000000000000000000000000000"
},
"0x2A5Ff76F69E893b113F8cC788e2c64960f3648cB": {
"nonce": "0",
"balance": "0x200000000000000000000000000"
},
"0x257A1F95F3C09a0A2F4d82d3f916E8DbCE084659": {
"nonce": "0",
"balance": "0x200000000000000000000000000"
}
}
}
scrape_configs:
- job_name: cadvisor
scrape_interval: 5s
static_configs:
- targets:
- cadvisor:8080
- job_name: container-ring
scrape_interval: 5s
static_configs:
- targets:
- ring:38020
- job_name: container-net
scrape_interval: 5s
static_configs:
- targets:
- net:38020
- job_name: container-nebula
scrape_interval: 5s
static_configs:
- targets:
- nebula:38020
{
"contract": "0x054795542cA35Fb055b219ed647628935e5dDf96",
"rpc_node": "http://172.17.0.1:8545",
"chain_id": 1024,
"main_account_priv": "F53D987FB2E98107A6AD7916AA8C6FF65F9C19D3F703AF7540002357ECAB69A1"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment