forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prysm-cl-only.yml
88 lines (86 loc) · 2.4 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
version: "3.9"
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}
- DOCKER_TAG=${PRYSM_DOCKER_TAG}
services:
consensus:
restart: "unless-stopped"
build:
target: consensus
<<: *prysm-build
image: prysm-consensus:local
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}
- OVERRIDE_TTD=${OVERRIDE_TTD}
- MEV_BOOST=${MEV_BOOST}
- MEV_NODE=${MEV_NODE}
ports:
- ${HOST_IP:-0.0.0.0}:${PRYSM_PORT}:${PRYSM_PORT}/tcp
- ${HOST_IP:-0.0.0.0}:${PRYSM_UDP_PORT}:${PRYSM_UDP_PORT}/udp
networks:
default:
aliases:
- eth2
<<: *logging
entrypoint:
- docker-entrypoint.sh
- beacon-chain
- --datadir
- /var/lib/prysm/
- --rpc-host
- 0.0.0.0
- --grpc-gateway-host
- 0.0.0.0
- --grpc-gateway-port
- ${CL_REST_PORT:-5052}
- --execution-endpoint
- ${EL_NODE}
- --jwt-secret
- /var/lib/prysm/ee-secret/jwtsecret
- --p2p-tcp-port
- ${PRYSM_PORT}
- --p2p-udp-port
- ${PRYSM_UDP_PORT}
- --p2p-max-peers
- ${CL_MAX_PEER_COUNT:-45}
- --verbosity
- ${LOG_LEVEL}
- --${NETWORK}
- --accept-terms-of-use
- --monitoring-host
- 0.0.0.0
- --monitoring-port
- "8008"
- --suggested-fee-recipient
- ${FEE_RECIPIENT}
labels:
- traefik.enable=true
- traefik.http.routers.cl.entrypoints=websecure
- traefik.http.routers.cl.rule=Host(`${CL_HOST}.${DOMAIN}`)
- traefik.http.routers.cl.service=cl
- traefik.http.routers.cl.tls.certresolver=letsencrypt
- traefik.http.routers.cllb.service=cl
- traefik.http.routers.cllb.entrypoints=websecure
- traefik.http.routers.cllb.rule=Host(`${CL_LB}.${DOMAIN}`)
- traefik.http.routers.cllb.tls.certresolver=letsencrypt
- traefik.http.services.cl.loadbalancer.server.port=${CL_REST_PORT:-5052}
volumes:
prysmconsensus-data:
jwtsecret: