forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
teku-base.yml
96 lines (96 loc) · 2.52 KB
/
teku-base.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
version: "3.4"
services:
beacon:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./teku
args:
- BUILD_TARGET=${TEKU_SRC_BUILD_TARGET}
- DOCKER_TAG=${TEKU_DOCKER_TAG}
- USER=${TEKU_USER}
- UID=${LOCAL_UID}
dockerfile: ${TEKU_DOCKERFILE}
image: teku
volumes:
- teku-data:/var/lib/teku
environment:
- JAVA_OPTS=${TEKU_LOW_MEM}
ports:
- ${TEKU_PORT}:${TEKU_PORT}/tcp
- ${TEKU_PORT}:${TEKU_PORT}/udp
entrypoint:
- /opt/teku/bin/teku
- --data-path=/var/lib/teku
- --log-destination=CONSOLE
- --network=${NETWORK}
- --eth1-endpoint=${ETH1_NODE}
- --p2p-port=${TEKU_PORT}
- --p2p-peer-upper-bound=${TEKU_PEER_COUNT}
- --validators-keystore-locking-enabled=true
- --validator-keys=/var/lib/teku/validator-keys:/var/lib/teku/validator-passwords
- --validators-graffiti=${GRAFFITI}
- --logging=${LOG_LEVEL}
validator-import:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
image: teku
build:
context: ./teku
args:
- BUILD_TARGET=${TEKU_SRC_BUILD_TARGET}
- DOCKER_TAG=${TEKU_DOCKER_TAG}
- USER=${TEKU_USER}
- UID=${LOCAL_UID}
dockerfile: ${TEKU_DOCKERFILE}
volumes:
- teku-data:/var/lib/teku
- ${DEPCLI_LOCALDIR}/validator_keys:/var/lib/teku/validator_keys
entrypoint: copy-teku-validator-keys.sh
deposit-cli:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./eth2.0-deposit-cli
args:
- BUILD_TARGET=${DEPCLI_SRC_BUILD_TARGET}
- USER=${DEPCLI_USER}
- UID=${LOCAL_UID}
image: eth2.0-deposit-cli
volumes:
- ${DEPCLI_LOCALDIR}:/var/lib/depcli-data
entrypoint:
- python3
- /app/eth2deposit/deposit.py
- new-mnemonic
- --folder
- /var/lib/depcli-data
- --chain
- ${NETWORK}
deposit-cli-add-recover:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./eth2.0-deposit-cli
args:
- BUILD_TARGET=${DEPCLI_SRC_BUILD_TARGET}
- USER=${DEPCLI_USER}
- UID=${LOCAL_UID}
image: eth2.0-deposit-cli
volumes:
- ${DEPCLI_LOCALDIR}:/var/lib/depcli-data
entrypoint:
- python3
- /app/eth2deposit/deposit.py
- existing-mnemonic
- --folder
- /var/lib/depcli-data
- --chain
- ${NETWORK}
eth2:
image: tianon/true
restart: "no"
depends_on:
- beacon
volumes:
teku-data: