forked from automata-network/automata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (94 loc) · 2.54 KB
/
docker-compose.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
## Run a network with 2 validators and 1 light node
##
## You can directly use docker-compose with this file or use
## `scripts/run-network.sh` for more advanced usage
##
## Environment Variables:
## - IMAGE: the docker image
## - CHAIN: chain spec argument, see option `--chain` in `docker run atactr/automata --help`
##
## Listening Ports:
## - validator-a: localhost:9944
## - validator-b: localhost:9945
## - light-c: localhost:9946
version: "3.7"
services:
validator-a:
ports:
- "9944:9944"
- "9933:9933"
- "9615:9615"
image: ${IMAGE:-atactr/automata}
networks:
- internet
command:
- "--node-key"
- "0000000000000000000000000000000000000000000000000000000000000001"
- "--base-path"
- "/tmp/alice"
- "--chain=${CHAIN:-local}"
- "--port"
- "30333"
- "--alice"
- "--validator"
- "--bootnodes"
- "/dns/validator-b/tcp/30333/p2p/12D3KooWHdiAxVd8uMQR1hGWXccidmfCwLqcMpGwR6QcTP6QRMuD"
# Not only bind to localhost.
- "--unsafe-ws-external"
- "--unsafe-rpc-external"
- "--no-telemetry"
- "--rpc-cors"
- "all"
validator-b:
ports:
- "9945:9944"
- "9934:9933"
image: ${IMAGE:-atactr/automata}
networks:
- internet
command:
- "--node-key"
- "0000000000000000000000000000000000000000000000000000000000000002"
- "--base-path"
- "/tmp/bob"
- "--chain=${CHAIN:-local}"
- "--port"
- "30333"
- "--bob"
- "--validator"
- "--bootnodes"
- "/dns/validator-a/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
- "--no-telemetry"
- "--rpc-cors"
- "all"
# Not only bind to localhost.
- "--unsafe-ws-external"
- "--unsafe-rpc-external"
light-c:
ports:
- "9946:9944"
- "9935:9933"
image: ${IMAGE:-atactr/automata}
networks:
- internet
command:
- "--node-key"
- "0000000000000000000000000000000000000000000000000000000000000003"
- "--base-path"
- "/tmp/light"
- "--chain=${CHAIN:-local}"
- "--port"
- "30333"
- "--light"
- "--bootnodes"
- "/dns/validator-a/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
- "--bootnodes"
- "/dns/validator-b/tcp/30333/p2p/12D3KooWHdiAxVd8uMQR1hGWXccidmfCwLqcMpGwR6QcTP6QRMuD"
- "--no-telemetry"
- "--rpc-cors"
- "all"
# Not only bind to localhost.
- "--unsafe-ws-external"
- "--unsafe-rpc-external"
networks:
internet: