forked from charx0r/POKT_DOKT
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbesu-fullnode.yml
107 lines (102 loc) · 3.55 KB
/
besu-fullnode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '3.1'
services:
mainnet-besu:
build:
context: besu
args:
UPSTREAM_VERSION: 24.10.0
expose:
- 8545
- 8551
ports:
- "7791:7791/tcp"
- "7791:7791/udp"
volumes:
- mainnet-besu-fullnode:/var/lib/besu
- .jwtsecret:/jwt.hex
command:
[
"--rpc-ws-host=0.0.0.0",
"--rpc-ws-enabled=true",
"--rpc-http-host=0.0.0.0",
"--rpc-http-enabled=true",
"--host-allowlist=*",
"--rpc-http-cors-origins=*",
"--engine-rpc-port=8551",
"--engine-host-allowlist=*",
"--engine-jwt-secret=/jwt.hex",
"--engine-rpc-enabled=true",
"--data-storage-format=BONSAI",
"--data-path=/var/lib/besu",
"--sync-mode=X_CHECKPOINT",
"--rpc-http-max-active-connections=170",
"--p2p-port=7791",
]
restart: unless-stopped
networks:
- chains
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.mainnet-besu-stripprefix.stripprefix.prefixes=/mainnet-besu"
- "traefik.http.services.mainnet-besu.loadbalancer.server.port=8545"
- "traefik.http.routers.mainnet-besu.entrypoints=websecure"
- "traefik.http.routers.mainnet-besu.tls.certresolver=myresolver"
- "traefik.http.routers.mainnet-besu.rule=Host(`$DOMAIN`) && PathPrefix(`/mainnet-besu`)"
- "traefik.http.routers.mainnet-besu.middlewares=mainnet-besu-stripprefix, ipwhitelist"
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=6060"
- "prometheus-scrape.job_name=geth-mainnet-besu"
- "prometheus-scrape.metrics_path=/debug/metrics/prometheus"
lighthouse-mainnet:
image: sigp/lighthouse:v5.1.3-modern
restart: unless-stopped
networks:
- chains
ports:
- 20506:20506/tcp # p2p
- 20506:20506/udp # p2p
expose:
- 5054 # metrics
- 4000 # http
- 20506 # p2p
volumes:
- mainnet_consensus:/data
- .jwtsecret:/jwt.hex
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command: |
lighthouse
beacon_node
--network=mainnet
--disable-upnp
--datadir=/data
--port=20506
--http
--http-address=0.0.0.0
--http-port=4000
--target-peers=50
--execution-endpoint=http://mainnet-besu:8551
--execution-jwt=/jwt.hex
--debug-level=info
--validator-monitor-auto
--subscribe-all-subnets
--import-all-attestations
--metrics
--metrics-port=5054
--metrics-address=0.0.0.0
--checkpoint-sync-url=https://beaconstate.info
labels:
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=5054"
- "prometheus-scrape.job_name=lighthouse-mainnet"
- "prometheus-scrape.metrics_path=/metrics"
- "traefik.enable=true"
- "traefik.http.middlewares.lighthouse-mainnet-stripprefix.stripprefix.prefixes=/lighthouse-mainnet"
- "traefik.http.services.lighthouse-mainnet.loadbalancer.server.port=4000"
- "traefik.http.routers.lighthouse-mainnet.entrypoints=websecure"
- "traefik.http.routers.lighthouse-mainnet.tls.certresolver=myresolver"
- "traefik.http.routers.lighthouse-mainnet.rule=Host(`$DOMAIN`) && PathPrefix(`/lighthouse-mainnet`)"
- "traefik.http.routers.lighthouse-mainnet.middlewares=lighthouse-mainnet-stripprefix, ipwhitelist"
volumes:
mainnet-besu-fullnode: {}
mainnet_consensus: