forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
akula.yml
61 lines (60 loc) · 1.65 KB
/
akula.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
version: "3.9"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
execution:
restart: "unless-stopped"
build:
context: ./akula
dockerfile: ${AKULA_DOCKERFILE}
args:
- BUILD_TARGET=${AKULA_SRC_BUILD_TARGET}
- DOCKER_TAG=${AKULA_DOCKER_TAG}
stop_grace_period: 3m
image: akula:local
user: akula
volumes:
- akula-el-data:/var/lib/akula
- /etc/localtime:/etc/localtime:ro
- jwtsecret:/var/lib/akula/ee-secret
environment:
- JWT_SECRET=${JWT_SECRET}
- OVERRIDE_TTD=${OVERRIDE_TTD}
- LOG_LEVEL=${LOG_LEVEL}
ports:
- ${HOST_IP:-0.0.0.0}:${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/tcp
- ${HOST_IP:-0.0.0.0}:${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/udp
<<: *logging
entrypoint:
- docker-entrypoint.sh
- akula
- --datadir
- /var/lib/akula
- --listen-port
- ${EL_P2P_PORT:-30303}
- --discv4-port
- ${EL_P2P_PORT:-30303}
- --rpc-listen-address
- 0.0.0.0:${EL_RPC_PORT:-8545}
- --websocket-listen-address
- 0.0.0.0:${EL_WS_PORT:-8546}
- --engine-listen-address
- 0.0.0.0:${EE_PORT:-8851}
- --jwt-secret-path
- /var/lib/akula/ee-secret/jwtsecret
- --max-peers
- ${EL_MAX_PEER_COUNT:-100}
- --min-peers
- ${EL_MIN_PEER_COUNT:-25}
- --chain
- ${NETWORK:-mainnet}
# For now only Archive node works, as we need the eth_getLogs back to deposit contract deployment
# - --prune
volumes:
akula-el-data:
jwtsecret: