-
Notifications
You must be signed in to change notification settings - Fork 237
/
prysm-cl-only.yml
103 lines (99 loc) · 2.75 KB
/
prysm-cl-only.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
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
x-build: &prysm-build
context: ./prysm
dockerfile: ${PRYSM_DOCKERFILE}
args:
- BUILD_TARGET=${PRYSM_SRC_BUILD_TARGET:-'$(git describe --tags $(git rev-list --tags --max-count=1))'}
- SRC_REPO=${PRYSM_SRC_REPO:-https://github.com/prysmaticlabs/prysm}
- DOCKER_TAG=${PRYSM_DOCKER_TAG:-stable}
- DOCKER_VC_TAG=${PRYSM_DOCKER_VC_TAG:-stable}
- DOCKER_REPO=${PRYSM_DOCKER_REPO:-gcr.io/prysmaticlabs/prysm/beacon-chain}
- DOCKER_VC_REPO=${PRYSM_DOCKER_VC_REPO:-gcr.io/prysmaticlabs/prysm/validator}
services:
consensus:
restart: "unless-stopped"
build:
target: consensus
<<: *prysm-build
image: prysm-consensus:local
pull_policy: never
user: prysmconsensus
stop_grace_period: 1m
volumes:
- prysmconsensus-data:/var/lib/prysm
- /etc/localtime:/etc/localtime:ro
- jwtsecret:/var/lib/prysm/ee-secret
environment:
- RAPID_SYNC_URL=${RAPID_SYNC_URL}
- JWT_SECRET=${JWT_SECRET}
- MEV_BOOST=${MEV_BOOST}
- MEV_NODE=${MEV_NODE}
- CL_EXTRAS=${CL_EXTRAS:-}
- ARCHIVE_NODE=${ARCHIVE_NODE:-}
- NETWORK=${NETWORK}
ports:
- ${HOST_IP:-}:${PRYSM_PORT}:${PRYSM_PORT}/tcp
- ${HOST_IP:-}:${PRYSM_UDP_PORT}:${PRYSM_UDP_PORT}/udp
- ${HOST_IP:-}:${CL_QUIC_PORT:-9001}:${CL_QUIC_PORT:-9001}/udp
networks:
default:
aliases:
- eth2
- ${NETWORK}-consensus
<<: *logging
entrypoint:
- docker-entrypoint.sh
- beacon-chain
- --datadir
- /var/lib/prysm/
- --rpc-host
- 0.0.0.0
- --http-host
- 0.0.0.0
- --http-port
- ${CL_REST_PORT:-5052}
# Allow larger messages so credential change messages can be sent
- --rpc-max-page-size
- "200000"
- --grpc-max-msg-size
- "268435456"
- --execution-endpoint
- ${EL_NODE}
- --jwt-secret
- /var/lib/prysm/ee-secret/jwtsecret
- --p2p-tcp-port
- ${PRYSM_PORT}
- --p2p-udp-port
- ${PRYSM_UDP_PORT}
- --p2p-quic-port
- ${CL_QUIC_PORT}
- --enable-quic
- --p2p-max-peers
- ${CL_MAX_PEER_COUNT:-70}
- --verbosity
- ${LOG_LEVEL}
- --accept-terms-of-use
- --monitoring-host
- 0.0.0.0
- --monitoring-port
- "8008"
- --suggested-fee-recipient
- ${FEE_RECIPIENT}
labels:
- metrics.scrape=true
- metrics.path=/metrics
- metrics.port=8008
- metrics.instance=consensus
- metrics.network=${NETWORK}
volumes:
prysmconsensus-data:
jwtsecret:
networks:
default:
enable_ipv6: ${IPV6:-false}