-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
178 lines (178 loc) · 4.48 KB
/
docker-compose.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: '3'
services:
################ explorer
exporter:
image: gobitfly/eth2-beaconchain-explorer
depends_on:
- postgres
- bigtable
- erigon
- lighthouse
restart: unless-stopped
command:
- explorer
- -config=/v/config.yml
volumes:
- ./:/v
- ./docker-volumes/explorer:/data
environment:
- INDEXER_ENABLED=true
- INDEXER_NODE_HOST=lighthouse
- INDEXER_NODE_PORT=4000
- BIGTABLE_EMULATOR_HOST=bigtable:9000
- ETH1_ERIGON_ENDPOINT=http://ergion:8545
- ETH1_GETH_ENDPOINT=http://ergion:8545
eth1indexer:
image: gobitfly/eth2-beaconchain-explorer
depends_on:
- bigtable
restart: unless-stopped
command:
- eth1indexer
- -bigtable.project=explorer
- -bigtable.instance=bigtable:9000
- -network=sepolia
- -erigon=ws://erigon:8545
- -data.concurrency=2
- -data.offset=100
- -data.start=0
- -data.end=0
- -blocks.concurrency=2
- -blocks.offset=100
- -blocks.start=0
- -blocks.end=0
- -balances.enabled
- -balances.batch=100
volumes:
- ./:/v
- ./docker-volumes/explorer:/data
environment:
- BIGTABLE_EMULATOR_HOST=bigtable:9000
statistics:
image: gobitfly/eth2-beaconchain-explorer
depends_on:
- postgres
- bigtable
command:
- statistics
- -config=/v/config.yml
volumes:
- ./:/v
- ./docker-volumes/explorer:/data
environment:
- INDEXER_ENABLED=false
frontend-updater:
image: gobitfly/eth2-beaconchain-explorer
depends_on:
- postgres
- bigtable
- redis
command:
- frontend-data-updater
- -config=/v/config.yml
environment:
- FRONTEND_ENABLED=true
- BIGTABLE_EMULATOR_HOST=bigtable:9000
volumes:
- ./:/v
- ./docker-volumes/explorer:/data
frontend:
image: gobitfly/eth2-beaconchain-explorer
depends_on:
- postgres
- bigtable
- redis
restart: unless-stopped
command:
- explorer
- -config=/v/config.yml
environment:
- FRONTEND_ENABLED=true
- BIGTABLE_EMULATOR_HOST=bigtable:9000
- ETH1_ERIGON_ENDPOINT=http://ergion:8545
- ETH1_GETH_ENDPOINT=http://ergion:8545
volumes:
- ./:/v
- ./docker-volumes/explorer:/data
ports:
- 8080:8080
################ dbs
redis:
image: redis:7
restart: unless-stopped
volumes:
- ./docker-volumes/redis:/data
postgres:
image: postgres:14
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=pass
- POSTGRES_USER=postgres
- POSTGRES_DB=db
- PGDATA=/var/lib/postgresql/data
volumes:
- ./docker-volumes/postgres:/var/lib/postgresql/data
- ./tables.sql:/docker-entrypoint-initdb.d/init.sql
bigtable:
build: ./
restart: unless-stopped
command:
- little_bigtable
- -db-file=/data/db
- -host=0.0.0.0
- -port=9000
volumes:
- ./init-bigtable.sh:/init-bigtable.sh
- ./docker-volumes/bigtable:/data
- ./cbt-definitions.yml:/cbt-definitions.yml
- ./eth1.proto:/eth1.proto
environment:
- BIGTABLE_EMULATOR_HOST=bigtable:9000
################ nodes
erigon:
image: thorax/erigon:v2.28.1
restart: unless-stopped
command:
- erigon
- --nat=any
- --ws
- --http
- --http.addr=0.0.0.0
- --http.api=eth,erigon,engine,debug,trace
- --http.vhosts=*
- --chain=sepolia
- --datadir=/data
- --authrpc.addr=0.0.0.0
- --authrpc.port=8551
- --authrpc.vhosts=*
- --authrpc.jwtsecret=/secrets/el-jwtsecret
- --maxpeers=8
volumes:
- ./docker-volumes/erigon:/data
- ./docker-volumes/secrets:/secrets
stop_signal: SIGINT
stop_grace_period: 3m
ports:
- 30303:30303/udp
lighthouse:
image: sigp/lighthouse:v3.2.1-modern
restart: unless-stopped
command:
- lighthouse
- --datadir=/data
- --network=sepolia
- beacon_node
- --target-peers=8
- --slots-per-restore-point=64
- --port=13000
- --metrics-port=9091
- --http
- --http-allow-origin=*
- --http-address=0.0.0.0
- --http-port=4000
- --checkpoint-sync-url=https://sepolia.beaconstate.info/
- --execution-endpoints=http://erigon:8551
- --execution-jwt=/secrets/el-jwtsecret
volumes:
- ./docker-volumes/lighthouse:/data
- ./docker-volumes/secrets:/secrets