forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
akula.yml
46 lines (45 loc) · 1.05 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
version: "3.4"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
execution:
restart: "${RESTART}"
build:
context: ./akula
dockerfile: ${AKULA_DOCKERFILE}
args:
- BUILD_TARGET=${AKULA_SRC_BUILD_TARGET}
- DOCKER_TAG=${AKULA_DOCKER_TAG}
stop_grace_period: 3m
image: akula:merge
user: akula
volumes:
- akula-el-data:/var/lib/akula
- /etc/localtime:/etc/localtime:ro
ports:
- ${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/tcp
- ${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/udp
<<: *logging
entrypoint:
- 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}
- --chain
- ${EL_NETWORK:-mainnet}
- --prune
eth:
depends_on:
- execution
volumes:
akula-el-data: