-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
101 lines (98 loc) · 2.44 KB
/
docker-compose.dev.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
97
98
99
100
101
version: "3.3"
services:
alice:
container_name: alice
build:
context: ./images/node
args:
- BRANCH=da-poc
image: da:poc
tmpfs: /tmp
volumes:
- alice-state:/da/state
- ./volume/dev/local.chain_spec.json:/da/chain_spec.json:ro
ports:
- 9944:9944
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
command:
--validator
--alice
--chain /da/chain_spec.json
--base-path /da/state
--name MATIC_VALIDATOR_1
--node-key 0000000000000000000000000000000000000000000000000000000000000001
--execution Native
--in-peers 2
--out-peers 2
--port 30333
--no-prometheus
--rpc-cors all
--unsafe-rpc-external
--unsafe-ws-external
--ws-port 9944
bob:
container_name: bob
image: da:poc
tmpfs: /tmp
volumes:
- bob-state:/da/state
- ./volume/dev/local.chain_spec.json:/da/chain_spec.json:ro
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
depends_on:
- alice
command:
--validator
--bob
--chain /da/chain_spec.json
--base-path /da/state
--name MATIC_VALIDATOR_2
--node-key 0000000000000000000000000000000000000000000000000000000000000002
--execution Native
--in-peers 2
--out-peers 2
--port 30333
--bootnodes /dns4/alice/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
--no-prometheus
--rpc-cors all
# Use `docker attach` (and `Ctrl-p` + `Ctrl-q` to detach).
charlie:
container_name: charlie
image: da:debug-poc
build:
context: ./images/node
args:
- BRANCH=da-poc
- PROFILE=debug
tmpfs: /tmp
volumes:
- charlie-state:/da/state
- ./volume/dev/local.chain_spec.json:/da/chain_spec.json:ro
depends_on:
- alice
command:
--validator
--charlie
--chain /da/chain_spec.json
--base-path /da/state
--name MATIC_VALIDATOR_3
--node-key 0000000000000000000000000000000000000000000000000000000000000003
--execution Native
--in-peers 2
--out-peers 2
--port 30333
--bootnodes /dns4/alice/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
--no-prometheus
--rpc-cors all
volumes:
alice-state:
bob-state:
charlie-state:
# vim: ts=2:et