-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (43 loc) · 1.27 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
version: '1.0.0'
services:
init_alice:
image: chainsupport/substrate-testnet-node:latest
entrypoint: ["/usr/local/bin/substrate"]
command: ["key", "generate-node-key", "--base-path", "/data"]
volumes:
- ./db/alice:/data
init_bob:
image: chainsupport/substrate-testnet-node:latest
entrypoint: ["/usr/local/bin/substrate"]
command: ["key", "generate-node-key", "--base-path", "/data"]
volumes:
- ./db/bob:/data
alice:
image: chainsupport/substrate-testnet-node:latest
command: ["--pruning", "archive", "--alice", "--rpc-max-connections", "100", "--rpc-cors", "all", "--rpc-methods", "Unsafe", "--unsafe-rpc-external"]
volumes:
- ./db/alice:/data
ports:
- 30333:30333
- 9944:9944
- 9933:9933
depends_on:
- init_alice
networks:
- substrate
bob:
image: chainsupport/substrate-testnet-node:latest
command: ["--pruning", "archive", "--bob", "--rpc-max-connections", "100", "--rpc-cors", "all", "--rpc-methods", "Unsafe", "--unsafe-rpc-external"]
volumes:
- ./db/bob:/data
ports:
- 30334:30333
- 8545:9944 #
- 9934:9933
depends_on:
- init_bob
networks:
- substrate
networks:
substrate:
driver: bridge