forked from shentufoundation/shentu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (70 loc) · 1.83 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
version: '3.2'
services:
node0:
restart: on-failure
image: shentu
command: [ "certikd", "start", "--home", "/root/certikd", "--trace" ]
volumes:
- type: bind
source: ${LOCALNET_ROOT}/node0
target: /root
networks:
localnet:
ipv4_address: ${LOCALNET_START_IP}
ports:
- "26656-26657:26656-26657"
- "26756-26757:26756-26757"
- "26856-26857:26856-26857"
- "26956-26957:26956-26957"
- "1317:1317"
node1:
restart: on-failure
image: shentu
command: [ "certikd", "start", "--home", "/root/certikd", "--trace" ]
volumes:
- type: bind
source: ${LOCALNET_ROOT}/node1
target: /root
network_mode: "service:node0"
node2:
restart: on-failure
image: shentu
command: [ "certikd", "start", "--home", "/root/certikd", "--trace" ]
volumes:
- type: bind
source: ${LOCALNET_ROOT}/node2
target: /root
network_mode: "service:node0"
node3:
restart: on-failure
image: shentu
command: [ "certikd", "start", "--home", "/root/certikd", "--trace" ]
volumes:
- type: bind
source: ${LOCALNET_ROOT}/node3
target: /root
network_mode: "service:node0"
rpc-server:
restart: on-failure
image: shentu
command: [ "certikcli", "rest-server", "--trust-node", "--laddr", "tcp://0.0.0.0:1317", "--home", "/root/certikcli", "--trace"]
volumes:
- type: bind
source: ${LOCALNET_ROOT}/node0
target: /root
network_mode: "service:node0"
client:
image: shentu
command: [ "tail", "-f", "/dev/null" ]
volumes:
- type: bind
source: ${LOCALNET_ROOT}
target: /root
network_mode: "service:node0"
networks:
localnet:
driver: bridge
ipam:
driver: default
config:
- subnet: ${LOCALNET_SUBNET}