Commit 73618d7a authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update

parent c790e95c
...@@ -4,15 +4,33 @@ services: ...@@ -4,15 +4,33 @@ services:
net: net:
image: net image: net
container_name: net container_name: net
entrypoint: /root/MetaNet --single-node --enable-prom volumes:
- ./net/net1/:/root/net/
entrypoint: /bin/sh /root/net/start.sh
ports:
- "38010:38010"
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 100
window: 120s
net2:
image: net
container_name: net2
volumes:
- ./net/net2/:/root/net/
entrypoint: /bin/sh /root/net/start.sh
ports: ports:
- 38010:38010 - "38011:38010"
deploy: deploy:
restart_policy: restart_policy:
condition: on-failure condition: on-failure
delay: 15s delay: 15s
max_attempts: 100 max_attempts: 100
window: 120s window: 120s
txchecker: txchecker:
image: txchecker image: txchecker
container_name: txchecker container_name: txchecker
...@@ -22,6 +40,7 @@ services: ...@@ -22,6 +40,7 @@ services:
delay: 15s delay: 15s
max_attempts: 100 max_attempts: 100
window: 120s window: 120s
sentry: sentry:
image: sentry image: sentry
container_name: sentry container_name: sentry
...@@ -33,11 +52,13 @@ services: ...@@ -33,11 +52,13 @@ services:
window: 120s window: 120s
volumes: volumes:
- ./sentry/app.json:/root/app.json - ./sentry/app.json:/root/app.json
nebula: nebula:
image: nebula image: nebula
container_name: nebula container_name: nebula
depends_on: depends_on:
- net - net
- net2
- sentry - sentry
deploy: deploy:
restart_policy: restart_policy:
...@@ -46,9 +67,27 @@ services: ...@@ -46,9 +67,27 @@ services:
max_attempts: 100 max_attempts: 100
window: 120s window: 120s
volumes: volumes:
- ./nebula/config.toml:/root/config.toml - ./nebula/nebula1/config.toml:/root/config.toml
- ./nebula/genesis.json:/root/genesis.json - ./nebula/nebula1/genesis.json:/root/genesis.json
- ./nebula/data:/root/data - ./nebula/nebula1/data:/root/data
nebula2:
image: nebula
container_name: nebula2
depends_on:
- net
- net2
- sentry
deploy:
restart_policy:
condition: on-failure
delay: 15s
max_attempts: 100
window: 120s
volumes:
- ./nebula/nebula2/config.toml:/root/config.toml
- ./nebula/nebula2/genesis.json:/root/genesis.json
- ./nebula/nebula2/data:/root/data
cryptor: cryptor:
image: cryptor image: cryptor
...@@ -67,8 +106,10 @@ services: ...@@ -67,8 +106,10 @@ services:
entrypoint: MetaRing start --ethconfig.httphost 0.0.0.0 --mempool.sentryurl sentry:38003 --mempool.nebulaurl nebula:38004 --mempool.p2purl net:38010 --mempool.cryptourl cryptor:38001 --mempool.checkerurl txchecker:38002 entrypoint: MetaRing start --ethconfig.httphost 0.0.0.0 --mempool.sentryurl sentry:38003 --mempool.nebulaurl nebula:38004 --mempool.p2purl net:38010 --mempool.cryptourl cryptor:38001 --mempool.checkerurl txchecker:38002
depends_on: depends_on:
- net - net
- net2
- sentry - sentry
- nebula - nebula
- nebula2
- cryptor - cryptor
deploy: deploy:
# resources: # resources:
...@@ -84,26 +125,27 @@ services: ...@@ -84,26 +125,27 @@ services:
max_attempts: 100 max_attempts: 100
window: 120s window: 120s
ports: ports:
- 8545:8545 - "8545:8545"
- 5001:5001 - "5001:5001"
prometheus: prometheus:
image: prom/prometheus:latest image: prom/prometheus:latest
container_name: prometheus container_name: prometheus
ports: ports:
- 9090:9090 - "9090:9090"
command: command:
- --config.file=/etc/prometheus/prometheus.yml - --config.file=/etc/prometheus/prometheus.yml
volumes: volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on: depends_on:
- cadvisor - cadvisor
cadvisor: cadvisor:
#image: gcr.io/cadvisor/cadvisor:latest #image: gcr.io/cadvisor/cadvisor:latest
image: google/cadvisor:latest image: google/cadvisor:latest
container_name: cadvisor container_name: cadvisor
ports: ports:
- 8080:8080 - "8080:8080"
volumes: volumes:
- /:/rootfs:ro - /:/rootfs:ro
- /var/run:/var/run:rw - /var/run:/var/run:rw
...@@ -112,7 +154,9 @@ services: ...@@ -112,7 +154,9 @@ services:
depends_on: depends_on:
- ring - ring
- net - net
- net2
- sentry - sentry
- txchecker - txchecker
- cryptor - cryptor
- nebula - nebula
- nebula2
p2p_server = "net2: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"
}
}
}
#!/bin/bash
NET1_HOST="net"
NET1_IP=$(nslookup $NET1_HOST | awk '/^Address: / { print $2 }')
NET2_HOST="net2"
NET2_IP=$(nslookup $NET2_HOST | awk '/^Address: / { print $2 }')
echo "IP address of $NET1_HOST is $NET1_IP"
echo "IP address of $NET2_HOST is $NET2_IP"
echo "/root/MetaNet --single-node --enable-prom --log-level debug \
--p2p-priv-key a5b18000b95e9e8e2afe5d49355b48c99aeee9e986ddc144af848847afd18df3 \
--grpc-host 0.0.0.0 --grpc-port 38010 --p2p-host-ip $NET1_IP"
\ No newline at end of file
...@@ -14,8 +14,10 @@ scrape_configs: ...@@ -14,8 +14,10 @@ scrape_configs:
static_configs: static_configs:
- targets: - targets:
- net:38020 - net:38020
- net2:38020
- job_name: container-nebula - job_name: container-nebula
scrape_interval: 5s scrape_interval: 5s
static_configs: static_configs:
- targets: - targets:
- nebula:38020 - nebula:38020
- nebula2:38020
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