forked from lukso-network/network-docker-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
140 lines (135 loc) · 4.05 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
version: "3.8"
services:
init-geth:
image: ethereum/client-go:$GETH_VERSION
container_name: geth-init
volumes:
- $EXECUTION_DATA_VOLUME:/execution_data
- $CONFIGS_VOLUME:/configs
command: >
--datadir=/execution_data init /configs/genesis.json
geth:
image: ethereum/client-go:$GETH_VERSION
container_name: geth
depends_on:
- init-geth
volumes:
- $EXECUTION_DATA_VOLUME:/execution_data
- $CONFIGS_VOLUME:/configs
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 2m
command: >
--datadir=/execution_data
--ws
--ws.api "eth,net"
--ws.addr 0.0.0.0
--ws.origins "*"
--http
--http.api "eth,net"
--http.addr "0.0.0.0"
--http.corsdomain "*"
--http.vhosts "*"
--ipcdisable
--authrpc.jwtsecret /configs/jwt.hex
--datadir=/execution_data
--bootnodes $EXECUTION_BOOTSTRAP_NODE_1
--networkid $LUKSO_MAINNET_NETWORK_ID
--verbosity $GETH_VERBOSITY
--metrics
--metrics.addr "0.0.0.0"
--miner.gaslimit 42000000
--miner.gasprice 4200000000
--ethstats "${NODE_NAME}:${ETH_STATS_SECRET}@${ETH_STATS_ADDRESS}"
--nat extip:$EXTERNAL_IP
# Change/add your custom flags here:
# https://geth.ethereum.org/docs/fundamentals/command-line-options
network_mode: host
logging:
driver: "local"
options:
max-size: "100m"
prysm_beacon:
image: prysmaticlabs/prysm-beacon-chain:$PRYSM_BEACON_VERSION
container_name: prysm_beacon
depends_on:
- geth
volumes:
- $CONSENSUS_DATA_VOLUME:/consensus_data
- $CONFIGS_VOLUME:/configs
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 2m
command: >
--accept-terms-of-use
--genesis-state=/configs/genesis.ssz
--chain-config-file=/configs/config.yaml
--datadir=/consensus_data
--bootstrap-node $PRYSM_BOOTSTRAP_NODE
--execution-endpoint=http://localhost:8551
--jwt-secret=/configs/jwt.hex
--suggested-fee-recipient $FEE_RECIPIENT
--min-sync-peers=0
--monitoring-host 0.0.0.0
--grpc-gateway-host 0.0.0.0
--rpc-host 0.0.0.0
--verbosity $PRYSM_VERBOSITY
--p2p-max-peers 250
--subscribe-all-subnets
--minimum-peers-per-subnet 0
--contract-deployment-block 0
--block-batch-limit 512
--block-batch-limit-burst-factor 10
--p2p-host-ip $EXTERNAL_IP
# Add your custom flags here.
# Docs: https://docs.prylabs.network/docs/prysm-usage/parameters#beacon-node-flags
network_mode: host
logging:
driver: "local"
options:
max-size: "100m"
prysm_validator_import:
image: prysmaticlabs/prysm-validator:v4.0.3
container_name: prysm_validator_import
volumes:
- $KEYSTORES_VOLUME:/keystore
- $VALIDATOR_DATA_VOLUME:/validator_data
- $TMP_VOLUME:/tmp/secrets
command: >
accounts import
--accept-terms-of-use
--keys-dir=/keystore
--wallet-dir=/keystore/prysm
--wallet-password-file=/tmp/secrets/password.txt
--account-password-file=/tmp/secrets/password.txt
prysm_validator:
image: prysmaticlabs/prysm-validator:v4.0.3
container_name: prysm_validator
depends_on:
prysm_beacon:
condition: service_started
prysm_validator_import:
condition: service_completed_successfully
volumes:
- $KEYSTORES_VOLUME:/keystore
- $VALIDATOR_DATA_VOLUME:/validator_data
- $CONFIGS_VOLUME:/configs
- $TMP_VOLUME:/tmp/secrets
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 2m
command: >
--accept-terms-of-use
--datadir /validator_data
--wallet-dir /keystore/prysm
--wallet-password-file /tmp/secrets/password.txt
--chain-config-file /configs/config.yaml
--monitoring-host 0.0.0.0
--grpc-gateway-host 0.0.0.0
--rpc-host 0.0.0.0
--suggested-fee-recipient $FEE_RECIPIENT
network_mode: host
logging:
driver: "local"
options:
max-size: "100m"