Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot committed Nov 2, 2024
1 parent 54be454 commit 8a65840
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 14 deletions.
3 changes: 0 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ services:
besu:
profiles: [besu]
hostname: execution-client
restart: unless-stopped
extends:
file: ./services/besu.yml
service: besu
Expand All @@ -16,7 +15,6 @@ services:
geth:
profiles: [geth]
hostname: execution-client
restart: unless-stopped
extends:
file: ./services/geth.yml
service: geth
Expand All @@ -25,7 +23,6 @@ services:
condition: service_completed_successfully

waves-node:
restart: unless-stopped
extends:
file: ./services/waves-node.yml
service: waves-node
10 changes: 10 additions & 0 deletions docker/geth-mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Node.P2P]
BootstrapNodes = [
"enode://b232ad7ca7bd6156e1adaa28ee0d064f3d973a67c0ad507a1b9dc32b3d64b307c754bc48c274aa96852f0041c2f85792681495e21f5baa62f06d3db8097af258@142.132.251.180:30303",
"enode://e8f7dbec4b146ef0ed1852cd05e3c0654f78a5784a7584f45bc0073bf6206d55764600b586148dfca42bd711c1c1bc02cb20abb2210320f830f003aacf074396@95.217.59.114:30303"
]
BootstrapNodesV5 = []
StaticNodes = [
"enode://b232ad7ca7bd6156e1adaa28ee0d064f3d973a67c0ad507a1b9dc32b3d64b307c754bc48c274aa96852f0041c2f85792681495e21f5baa62f06d3db8097af258@142.132.251.180:30303",
"enode://e8f7dbec4b146ef0ed1852cd05e3c0654f78a5784a7584f45bc0073bf6206d55764600b586148dfca42bd711c1c1bc02cb20abb2210320f830f003aacf074396@95.217.59.114:30303"
]
6 changes: 0 additions & 6 deletions docker/init-geth.sh

This file was deleted.

5 changes: 4 additions & 1 deletion docker/services/besu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
image: hyperledger/besu:latest
pull_policy: always
stop_grace_period: 5m
restart: unless-stopped
command:
- --logging=ALL
- --host-allowlist=*
Expand All @@ -19,9 +20,11 @@ services:
- --data-path=/var/lib/besu
- --genesis-file=/etc/besu/genesis.json
- --data-storage-format=BONSAI
- --static-nodes-file=/etc/besu/static-nodes.json
volumes:
- ../genesis-${NETWORK}.json:/etc/besu/genesis.json
- ../data/secrets:/etc/secrets:ro
- ../genesis-${NETWORK}.json:/etc/besu/genesis.json
- ../static-nodes-${NETWORK}.json:/etc/besu/static-nodes.json
- ../log4j2.xml:/etc/besu/log4j2.xml
- ../data/besu:/var/lib/besu
- ../logs/besu:/opt/besu/logs
Expand Down
16 changes: 12 additions & 4 deletions docker/services/geth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@ services:
geth-init:
container_name: geth-init
image: ethereum/client-go:stable
entrypoint: /tmp/init-geth.sh
entrypoint: /bin/sh -c
command:
- |
if [ ! -d /root/.ethereum/geth ] ; then
geth init /tmp/genesis.json
else
echo geth already initialized
fi
volumes:
- ../genesis-${NETWORK}.json:/tmp/genesis.json
- ../data/geth:/root/.ethereum
- ../init-geth.sh:/tmp/init-geth.sh
geth:
container_name: geth
image: ethereum/client-go:stable
pull_policy: always
stop_grace_period: 5m
restart: unless-stopped
command:
- --config=/etc/config.toml
- --syncmode=full
- --verbosity=4
- --http
Expand All @@ -32,7 +40,6 @@ services:
environment:
- GETH_MINER_GASLIMIT=${GAS_LIMIT}
- GETH_NETWORKID=${NETWORK_ID}
- GETH_BOOTNODES=${BOOTNODES}
logging:
driver: local
options:
Expand All @@ -41,11 +48,12 @@ services:
volumes:
- ../data/secrets:/etc/secrets:ro
- ../data/geth:/root/.ethereum
- ../geth-${NETWORK}:/etc/config.toml
ports:
- '30303:30303/tcp'
- '30303:30303/udp'
healthcheck:
test: 'wget -qO /dev/null --header "content-type: application/json" --post-data {\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\":[],\"id\":1} http://127.0.0.1:8545'
interval: 5s
interval: 10s
timeout: 1s
retries: 10
1 change: 1 addition & 0 deletions docker/services/waves-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
container_name: waves-node
image: ghcr.io/unitsnetwork/consensus-client:testnet
stop_grace_period: 5m
restart: unless-stopped
ports:
- 127.0.0.1:6869:6869
- 6868:6868
Expand Down
4 changes: 4 additions & 0 deletions docker/static-nodes-mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"enode://b232ad7ca7bd6156e1adaa28ee0d064f3d973a67c0ad507a1b9dc32b3d64b307c754bc48c274aa96852f0041c2f85792681495e21f5baa62f06d3db8097af258@142.132.251.180:30303",
"enode://e8f7dbec4b146ef0ed1852cd05e3c0654f78a5784a7584f45bc0073bf6206d55764600b586148dfca42bd711c1c1bc02cb20abb2210320f830f003aacf074396@95.217.59.114:30303"
]
Empty file.

0 comments on commit 8a65840

Please sign in to comment.