forked from perun-network/perun-eth-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_compose_template.json
73 lines (73 loc) · 1.73 KB
/
docker_compose_template.json
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
{
"version": "3",
"services": {
"ganache": {
"container_name": "ganache",
"image": "trufflesuite/ganache-cli:latest",
"command": "ganache-cli -m \"pistol kiwi shrug future ozone ostrich match remove crucial oblige cream critic\" --block-time 5 -e 1000 --gasLimit=9000000000000000",
"ports": [
"8545:8545"
],
"networks": {
"perun-net": {
"ipv4_address": "172.18.0.2"
}
}
},
"peer_0": {
"container_name": "peer_0",
"hostname": "peer_0",
"build": ".",
"tty": true,
"command": "./app-channel demo --config config/peer_0.yaml",
"ports": [
"5750:5750",
"8081:8081"
],
"restart": "unless-stopped",
"depends_on": [
"ganache"
],
"networks": {
"perun-net": {
"ipv4_address": "172.18.0.3"
}
}
},
"peer_1": {
"container_name": "peer_1",
"hostname": "peer_1",
"build": ".",
"tty": true,
"command": "./app-channel demo --config config/peer_1.yaml",
"ports": [
"5751:5751"
],
"restart": "unless-stopped",
"depends_on": [
"ganache",
"peer_0"
],
"networks": {
"perun-net": {
"ipv4_address": "172.18.0.4"
}
}
}
},
"networks": {
"perun-net": {
"driver": "bridge",
"driver_opts": {
"com.docker.network.bridge.name": "perun-bridge"
},
"ipam": {
"config": [
{
"subnet": "172.18.0.0/16"
}
]
}
}
}
}