forked from bcgov/von-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
116 lines (109 loc) · 2.03 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '3'
services:
#
# Client
#
client:
build: .
image: von-base
command: 'bash -c ''./scripts/start_client.sh'''
environment:
- DOCKERHOST=${DOCKERHOST}
networks:
- von
#
# Webserver
#
webserver:
build: .
image: von-base
command: 'bash -c ''./scripts/start_webserver.sh'''
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
networks:
- von
ports:
- 9000:8000
depends_on:
- node1
- node2
- node3
- node4
volumes:
- ./server:/home/indy/server
- node1-data:/home/indy/.mnt/node1
- node2-data:/home/indy/.mnt/node2
- node3-data:/home/indy/.mnt/node3
- node4-data:/home/indy/.mnt/node4
#
# Nodes
#
node1:
build: .
image: von-base
command: 'bash -c ''./scripts/start_node.sh 1'''
networks:
- von
ports:
- 9701:9701
- 9702:9702
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
volumes:
- node1-data:/var/lib/indy
node2:
build: .
image: von-base
command: 'bash -c ''./scripts/start_node.sh 2'''
networks:
- von
ports:
- 9703:9703
- 9704:9704
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
volumes:
- node2-data:/var/lib/indy
node3:
build: .
image: von-base
command: 'bash -c ''./scripts/start_node.sh 3'''
networks:
- von
ports:
- 9705:9705
- 9706:9706
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
volumes:
- node3-data:/var/lib/indy
node4:
build: .
image: von-base
command: 'bash -c ''./scripts/start_node.sh 4'''
networks:
- von
ports:
- 9707:9707
- 9708:9708
environment:
- IP=${IP}
- IPS=${IPS}
- DOCKERHOST=${DOCKERHOST}
volumes:
- node4-data:/var/lib/indy
networks:
von:
volumes:
node1-data:
node2-data:
node3-data:
node4-data: