forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lodestar-consensus.yml
68 lines (67 loc) · 1.76 KB
/
lodestar-consensus.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
version: "3.4"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
consensus:
restart: "${RESTART}"
build:
context: ./lodestar
dockerfile: ${LS_DOCKERFILE}
args:
- BUILD_TARGET=${LS_SRC_BUILD_TARGET}
- DOCKER_TAG=${LS_DOCKER_TAG}
image: lodestar:local
user: lsconsensus
stop_grace_period: 1m
volumes:
- lsconsensus-data:/var/lib/lodestar/consensus
- /etc/localtime:/etc/localtime:ro
ports:
- ${CC_P2P_PORT:-9000}:${CC_P2P_PORT:-9000}/tcp
- ${CC_P2P_PORT:-9000}:${CC_P2P_PORT:-9000}/udp
expose:
- 5052/tcp
<<: *logging
entrypoint:
- node
- --max-old-space-size=6144
- /usr/app/node_modules/.bin/lodestar
- beacon
- --rootDir
- /var/lib/lodestar/consensus
- --api.rest.enabled
- "true"
- --api.rest.host
- 0.0.0.0
- --api.rest.port
- "5052"
- --network.discv5.bindAddr
- "/ip4/0.0.0.0/udp/${CC_P2P_PORT:-9000}"
- --network.localMultiaddrs
- "/ip4/0.0.0.0/tcp/${CC_P2P_PORT:-9000}"
- --eth1.providerUrls
- ${EC_NODE}
- --logLevel
- ${LOG_LEVEL}
- --network
- ${NETWORK}
command: ${LS_RAPID_SYNC}
labels:
- traefik.enable=true
- traefik.http.routers.cc.service=cc
- traefik.http.routers.cc.entrypoints=websecure
- traefik.http.routers.cc.rule=Host(`${CC_HOST}.${DOMAIN}`)
- traefik.http.routers.cc.tls.certresolver=letsencrypt
- traefik.http.services.cc.loadbalancer.server.port=5052
eth:
image: tianon/true
restart: "no"
depends_on:
- consensus
volumes:
lsconsensus-data: