forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grandine-consensus.yml
57 lines (56 loc) · 1.24 KB
/
grandine-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
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: ./grandine
dockerfile: Dockerfile.binary
args:
- BUILD_TARGET=${GRANDINE_SRC_BUILD_TARGET}
- DOCKER_TAG=${GRANDINE_DOCKER_TAG}
image: grandine:local
user: grandine
stop_grace_period: 1m
volumes:
- grandineconsensus-data:/var/lib/grandine
- /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:
- 9001/tcp
networks:
default:
aliases:
- eth2
<<: *logging
entrypoint:
- grandine
- --data-dir
- /var/lib/grandine
- --http-address
- 0.0.0.0
- --http-port
- "9001"
- --network
- ${NETWORK}
- --libp2p-port
- ${CC_P2P_PORT:-9000}
- --eth1-rpc-urls
- ${EC_NODE}
- --metrics
- --subscribe-all-subnets
eth:
image: tianon/true
restart: "no"
depends_on:
- consensus
volumes:
grandineconsensus-data: