This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
113 lines (108 loc) · 3.06 KB
/
docker-compose.yaml
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
version: '3'
services:
iroha-node0:
build:
context: docker
dockerfile: iroha_node.Dockerfile
container_name: iroha-node0
ports:
- "50051:50051"
# - "20000:20000"
- "10001:10001"
environment:
- POSTGRES_USER=iroha
- POSTGRES_PASSWORD=iroha
- IROHA_POSTGRES_HOST=localhost
- IROHA_POSTGRES_PORT=5432
- IROHA_POSTGRES_USER=iroha
- IROHA_POSTGRES_PASSWORD=iroha
- CCACHE_DIR=/tmp/ccache
- KEY=node0
command: ["bash" , "-c", "sleep 1 && irohad --genesis_block /opt/iroha/genesis.block --config nodes/node0/config.sample --keypair_name nodes/node0/node0"]
tty: true
volumes:
- .:/opt/iroha
- ccache-data:/tmp/ccache
working_dir: /opt/iroha
cap_add:
- SYS_PTRACE
iroha-node1:
build:
context: docker
dockerfile: iroha_node.Dockerfile
container_name: iroha-node1
ports:
- "50052:50051"
- "20001:20000"
- "10002:10001"
environment:
- POSTGRES_USER=iroha
- POSTGRES_PASSWORD=iroha
- IROHA_POSTGRES_HOST=localhost
- IROHA_POSTGRES_PORT=5432
- IROHA_POSTGRES_USER=iroha
- IROHA_POSTGRES_PASSWORD=iroha
- KEY=node1
- CCACHE_DIR=/tmp/ccache
command: ["bash" , "-c", "sleep 4 && irohad --genesis_block /opt/iroha/genesis.block --config nodes/node1/config.sample --keypair_name nodes/node1/node1"]
tty: true
volumes:
- .:/opt/iroha
- ccache-data:/tmp/ccache
working_dir: /opt/iroha
cap_add:
- SYS_PTRACE
iroha-node2:
build:
context: docker
dockerfile: iroha_node.Dockerfile
container_name: iroha-node2
ports:
- "50053:50051"
- "20002:20000"
- "10003:10001"
environment:
- POSTGRES_USER=iroha
- POSTGRES_PASSWORD=iroha
- IROHA_POSTGRES_HOST=localhost
- IROHA_POSTGRES_PORT=5432
- IROHA_POSTGRES_USER=iroha
- IROHA_POSTGRES_PASSWORD=iroha
- KEY=node2
- CCACHE_DIR=/tmp/ccache
command: ["bash" , "-c", "sleep 7 && irohad --genesis_block /opt/iroha/genesis.block --config nodes/node2/config.sample --keypair_name nodes/node2/node2"]
tty: true
volumes:
- .:/opt/iroha
- ccache-data:/tmp/ccache
working_dir: /opt/iroha
cap_add:
- SYS_PTRACE
iroha-node3:
build:
context: docker
dockerfile: iroha_node.Dockerfile
container_name: iroha-node3
ports:
- "50054:50051"
- "20003:20000"
- "10004:10001"
environment:
- POSTGRES_USER=iroha
- POSTGRES_PASSWORD=iroha
- IROHA_POSTGRES_HOST=localhost
- IROHA_POSTGRES_PORT=5432
- IROHA_POSTGRES_USER=iroha
- IROHA_POSTGRES_PASSWORD=iroha
- KEY=node3
- CCACHE_DIR=/tmp/ccache
command: ["bash" , "-c", "sleep 10 && irohad --genesis_block /opt/iroha/genesis.block --config nodes/node3/config.sample --keypair_name nodes/node3/node3"]
tty: true
volumes:
- .:/opt/iroha
- ccache-data:/tmp/ccache
working_dir: /opt/iroha
cap_add:
- SYS_PTRACE
volumes:
ccache-data: