forked from analyzify360/velora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (96 loc) · 2.54 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
services:
postgres_db:
image: postgres:latest
container_name: postgres_db
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- postgres_network
geth:
image: ethereum/client-go:stable
container_name: ETH-archive
restart: unless-stopped
ports:
- 30303:30303
- 30303:30303/udp
- 8545:8545
- 8546:8546
- 8551:8551
volumes:
- ./data/geth:/root/.ethereum
- ./geth-config.toml:/geth-config.toml
stop_signal: SIGINT
stop_grace_period: 1m
healthcheck:
test: [ "CMD-SHELL", "geth attach --exec eth.blockNumber" ]
interval: 10s
timeout: 5s
retries: 5
command:
- --config=/geth-config.toml
- --rpc.allow-unprotected-txs
- --snapshot=false
- --gcmode=archive
- --http
- --http.api=eth,net,web3,engine,admin
- --http.addr=0.0.0.0
- --http.vhosts=*
- --http.corsdomain=*
- --ws
- --ws.origins=*
- --ws.addr=0.0.0.0
- --ws.api=eth,net,web3
- --graphql
- --graphql.corsdomain=*
- --graphql.vhosts=*
- --authrpc.addr=0.0.0.0
- --authrpc.vhosts=*
- --authrpc.jwtsecret=/root/.ethereum/jwt.hex
- --authrpc.port=8551
- --cache=42738 # should be 34% of RAM
prysm:
image: gcr.io/prysmaticlabs/prysm/beacon-chain
container_name: prysm-beaconchain
restart: unless-stopped
stop_grace_period: 1m
volumes:
- ./data/prysm:/data
- ./data/geth/jwt.hex:/geth/jwt.hex
depends_on:
geth:
condition: service_healthy
ports:
- 4000:4000
- 3500:3500
command:
- --accept-terms-of-use
- --datadir=/data
- --disable-monitoring
- --rpc-host=0.0.0.0
- --execution-endpoint=http://99.97.0.1:8551
- --jwt-secret=/geth/jwt.hex
- --rpc-host=0.0.0.0
- --rpc-port=4000
- --grpc-gateway-corsdomain=*
- --grpc-gateway-host=0.0.0.0
- --grpc-gateway-port=3500
- --min-sync-peers=7
- --historical-slasher-node=true
- --checkpoint-sync-url=https://sync.invis.tools
- --genesis-beacon-api-url=https://sync.invis.tools
- --suggested-fee-recipient=0xAba865A6826Ba0F02989Ea825084Aa8A5D71b723
networks:
postgres_network:
default:
ipam:
driver: default
config:
- subnet: 99.97.0.0/16
volumes:
postgres_data: