-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
52 lines (50 loc) · 1.27 KB
/
compose.yml
File metadata and controls
52 lines (50 loc) · 1.27 KB
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
version: "3"
services:
bootnode:
build: .
container_name: bootnode
healthcheck:
test: ["CMD", "nc", "-zv", "localhost", "3000"]
interval: 2s
retries: 3
start_period: 5s
command:
- "-grpc.addr=0.0.0.0"
- "-grpc.port=3000"
- "-crypto.seed=97d3a71712a442f6345e16df34ecec93c3f6666dc84cee739c2e95a878ea99e1"
expose:
- "3000"
validator:
build: .
container_name: validator
depends_on:
bootnode:
condition: service_healthy
healthcheck:
test: ["CMD", "nc", "-zv", "localhost", "4000"]
interval: 2s
retries: 3
start_period: 5s
command:
- "-grpc.addr=0.0.0.0"
- "-grpc.port=4000"
- "-grpc.bootnodes=bootnode:3000"
- "-crypto.seed=97d3a71712a442f6345e16df34ecec93c3f6666dc84cee739c2e95a878ea99e2"
- "-validator=true"
expose:
- "4000"
rpc-node:
build: .
container_name: rpc-node
depends_on:
bootnode:
condition: service_healthy
validator:
condition: service_healthy
command:
- "-grpc.addr=0.0.0.0"
- "-grpc.port=5000"
- "-grpc.bootnodes=bootnode:3000,validator:4000"
- "-crypto.seed=97d3a71712a442f6345e16df34ecec93c3f6666dc84cee739c2e95a878ea99e3"
expose:
- "5000"