-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
59 lines (55 loc) · 1.73 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
version: '3'
services:
node_alice:
container_name: alice
image: osuketh/zerochain:latest
ports:
- "30333:30333"
- "9933:9933"
- "9944:9944"
volumes:
- "zerochain-data-alice:/data"
command: zerochain --base-path /data/alice --chain=local --key //Alice --port 30333 --validator --name AlicesNode --node-key 0000000000000000000000000000000000000000000000000000000000000001 --ws-external --rpc-external
networks:
testing_net:
ipv4_address: 172.28.1.1
node_bob:
container_name: bob
image: osuketh/zerochain:latest
ports:
- "30335:30333"
- "9935:9933"
- "9945:9944"
volumes:
- "zerochain-data-bob:/data"
links:
- "node_alice:alice"
command: zerochain --base-path /data/bob --chain=local --key //Bob --port 30333 --validator --name BobsNode --bootnodes /ip4/172.28.1.1/tcp/30333/p2p/QmQZ8TjTqeDj3ciwr93EJ95hxfDsb9pEYDizUAbWpigtQN --ws-external --rpc-external
networks:
testing_net:
ipv4_address: 172.28.1.2
node_charlie:
container_name: charlie
image: osuketh/zerochain:latest
ports:
- "30336:30333"
- "9936:9933"
- "9946:9944"
volumes:
- "zerochain-data-charlie:/data"
links:
- "node_alice:alice"
command: zerochain --base-path /data/charlie --chain=local --key //Charlie --port 30333 --validator --name CharliesNode --bootnodes /ip4/172.28.1.1/tcp/30333/p2p/QmQZ8TjTqeDj3ciwr93EJ95hxfDsb9pEYDizUAbWpigtQN --ws-external --rpc-external
networks:
testing_net:
ipv4_address: 172.28.1.3
volumes:
zerochain-data-alice:
zerochain-data-bob:
zerochain-data-charlie:
networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16