switch to nethermind as a local node
This commit is contained in:
parent
aa56744e8d
commit
a2e110dbc7
@ -5,14 +5,14 @@ networks:
|
|||||||
net_db_bridge_red: {driver: bridge}
|
net_db_bridge_red: {driver: bridge}
|
||||||
net_rabbit_bridge_green: {driver: bridge}
|
net_rabbit_bridge_green: {driver: bridge}
|
||||||
net_rabbit_bridge_red: {driver: bridge}
|
net_rabbit_bridge_red: {driver: bridge}
|
||||||
net_parity_bridge_red: {driver: bridge}
|
net_ne_bridge_red: {driver: bridge}
|
||||||
net_parity_bridge_green: {driver: bridge}
|
net_ne_bridge_green: {driver: bridge}
|
||||||
net_db_bridge_amb_green: {driver: bridge}
|
net_db_bridge_amb_green: {driver: bridge}
|
||||||
net_db_bridge_amb_red: {driver: bridge}
|
net_db_bridge_amb_red: {driver: bridge}
|
||||||
net_rabbit_bridge_amb_green: {driver: bridge}
|
net_rabbit_bridge_amb_green: {driver: bridge}
|
||||||
net_rabbit_bridge_amb_red: {driver: bridge}
|
net_rabbit_bridge_amb_red: {driver: bridge}
|
||||||
net_parity_bridge_amb_red: {driver: bridge}
|
net_ne_bridge_amb_red: {driver: bridge}
|
||||||
net_parity_bridge_amb_green: {driver: bridge}
|
net_ne_bridge_amb_green: {driver: bridge}
|
||||||
services:
|
services:
|
||||||
bridge_affirmation:
|
bridge_affirmation:
|
||||||
cpus: 0.1
|
cpus: 0.1
|
||||||
@ -30,7 +30,7 @@ services:
|
|||||||
mem_limit: 500m
|
mem_limit: 500m
|
||||||
networks: [net_db_bridge_green,
|
networks: [net_db_bridge_green,
|
||||||
net_rabbit_bridge_green,
|
net_rabbit_bridge_green,
|
||||||
net_parity_bridge_green]
|
net_ne_bridge_green]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging:
|
logging:
|
||||||
driver: syslog
|
driver: syslog
|
||||||
@ -77,7 +77,7 @@ services:
|
|||||||
mem_limit: 500m
|
mem_limit: 500m
|
||||||
networks: [net_db_bridge_red,
|
networks: [net_db_bridge_red,
|
||||||
net_rabbit_bridge_red,
|
net_rabbit_bridge_red,
|
||||||
net_parity_bridge_red]
|
net_ne_bridge_red]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
@ -97,7 +97,7 @@ services:
|
|||||||
mem_limit: 500m
|
mem_limit: 500m
|
||||||
networks: [net_db_bridge_red,
|
networks: [net_db_bridge_red,
|
||||||
net_rabbit_bridge_red,
|
net_rabbit_bridge_red,
|
||||||
net_parity_bridge_red]
|
net_ne_bridge_red]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging:
|
logging:
|
||||||
driver: syslog
|
driver: syslog
|
||||||
@ -124,7 +124,7 @@ services:
|
|||||||
mem_limit: 500m
|
mem_limit: 500m
|
||||||
networks: [net_db_bridge_green,
|
networks: [net_db_bridge_green,
|
||||||
net_rabbit_bridge_green,
|
net_rabbit_bridge_green,
|
||||||
net_parity_bridge_green]
|
net_ne_bridge_green]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
@ -156,44 +156,41 @@ services:
|
|||||||
driver: syslog
|
driver: syslog
|
||||||
options: {tag: '{{.Name}}/{{.ID}}'}
|
options: {tag: '{{.Name}}/{{.ID}}'}
|
||||||
|
|
||||||
parity:
|
ne:
|
||||||
container_name: parity
|
container_name: ne
|
||||||
image: openethereum/openethereum:latest
|
image: nethermind/nethermind:latest
|
||||||
networks: [net_parity_bridge_green,
|
networks: [net_ne_bridge_green,
|
||||||
net_parity_bridge_red,
|
net_ne_bridge_red,
|
||||||
net_parity_bridge_amb_green,
|
net_ne_bridge_amb_green,
|
||||||
net_parity_bridge_amb_red]
|
net_ne_bridge_amb_red]
|
||||||
user: root
|
|
||||||
command:
|
command:
|
||||||
--chain=xdai
|
--config xdai
|
||||||
--base-path=/root/data
|
--baseDbPath /nethermind
|
||||||
--jsonrpc-port=8545
|
--JsonRpc.Enabled true
|
||||||
--jsonrpc-cors=all
|
--JsonRpc.Host 0.0.0.0
|
||||||
--jsonrpc-interface=all
|
--Init.StoreReceipts false
|
||||||
--jsonrpc-hosts=all
|
--TxPool.Size 8192
|
||||||
--jsonrpc-apis=web3,eth,net,parity
|
--Pruning.Mode Hybrid
|
||||||
--no-ancient-blocks
|
--Pruning.CacheMb 1024
|
||||||
--tx-queue-no-early-reject
|
--Sync.FastSync true
|
||||||
--max-peers=25
|
--Sync.FastBlocks true
|
||||||
|
--Sync.DownloadBodiesInFastSync false
|
||||||
|
--Sync.DownloadReceiptsInFastSync false
|
||||||
|
--Sync.DownloadHeadersInFastSync false
|
||||||
volumes:
|
volumes:
|
||||||
- ~/chaindata:/root/data
|
- ~/ne-data/logs:/nethermind/logs
|
||||||
|
- ~/ne-data/nethermind_db:/nethermind/nethermind_db
|
||||||
expose:
|
expose:
|
||||||
- "8545"
|
- "8545"
|
||||||
ports:
|
ports:
|
||||||
- "30303:30303/tcp"
|
- "30304:30303/tcp"
|
||||||
- "30303:30303/udp"
|
- "30304:30303/udp"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "100m"
|
max-size: "100m"
|
||||||
max-file: "1"
|
max-file: "1"
|
||||||
# CMD curl -f --retry 6 --max-time 5 --retry-delay 10 --retry-max-time 60 "http://localhost:8080/health" || bash -c 'kill -s 15 -1 && (sleep 10; kill -s 9 -1)'
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "sh", "-c", "curl -f --connect-timeout 1 --max-time 2 --retry 2 --retry-delay 3 --retry-max-time 15 -X POST -H 'Content-Type: application/json' --data '{\"jsonrpc\":\"2.0\",\"method\":\"eth_chainId\",\"id\":1}' http://localhost:8545/ || sh -c 'pkill -15 openethereum && (sleep 10; pkill -9 openethereum)'"]
|
|
||||||
interval: 60s
|
|
||||||
timeout: 30s
|
|
||||||
start_period: 60s
|
|
||||||
bridge_amb_affirmation:
|
bridge_amb_affirmation:
|
||||||
cpus: 0.1
|
cpus: 0.1
|
||||||
entrypoint: yarn watcher:affirmation-request
|
entrypoint: yarn watcher:affirmation-request
|
||||||
@ -213,7 +210,7 @@ services:
|
|||||||
mem_limit: 500m
|
mem_limit: 500m
|
||||||
networks: [net_db_bridge_amb_green,
|
networks: [net_db_bridge_amb_green,
|
||||||
net_rabbit_bridge_amb_green,
|
net_rabbit_bridge_amb_green,
|
||||||
net_parity_bridge_amb_green]
|
net_ne_bridge_amb_green]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis-amb
|
- redis-amb
|
||||||
@ -237,7 +234,7 @@ services:
|
|||||||
mem_limit: 500m
|
mem_limit: 500m
|
||||||
networks: [net_db_bridge_amb_green,
|
networks: [net_db_bridge_amb_green,
|
||||||
net_rabbit_bridge_amb_green,
|
net_rabbit_bridge_amb_green,
|
||||||
net_parity_bridge_amb_green]
|
net_ne_bridge_amb_green]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis-amb
|
- redis-amb
|
||||||
@ -261,7 +258,7 @@ services:
|
|||||||
mem_limit: 500m
|
mem_limit: 500m
|
||||||
networks: [net_db_bridge_amb_red,
|
networks: [net_db_bridge_amb_red,
|
||||||
net_rabbit_bridge_amb_red,
|
net_rabbit_bridge_amb_red,
|
||||||
net_parity_bridge_amb_red]
|
net_ne_bridge_amb_red]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis-amb
|
- redis-amb
|
||||||
@ -304,7 +301,7 @@ services:
|
|||||||
mem_limit: 500m
|
mem_limit: 500m
|
||||||
networks: [net_db_bridge_amb_red,
|
networks: [net_db_bridge_amb_red,
|
||||||
net_rabbit_bridge_amb_red,
|
net_rabbit_bridge_amb_red,
|
||||||
net_parity_bridge_amb_red]
|
net_ne_bridge_amb_red]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis-amb
|
- redis-amb
|
||||||
|
Loading…
Reference in New Issue
Block a user