forked from CovenantSQL/CovenantSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
211 lines (209 loc) · 5.23 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
version: '3'
services:
covenantsql_bp_0:
image: covenantsql/covenantsql:latest
container_name: covenantsql_bp_0
restart: always
ports:
- '11099:4661'
- '12099:4665'
environment:
COVENANT_ROLE: blockproducer
COVENANT_CONF: ./node_0/config.yaml
METRIC_WEB_ADDR: '0.0.0.0:4665'
volumes:
- ./test/service/node_0/:/app/node_0/
networks:
default:
ipv4_address: 172.254.1.2
logging:
driver: 'json-file'
options:
max-size: '1m'
max-file: '10'
covenantsql_bp_1:
image: covenantsql/covenantsql:latest
container_name: covenantsql_bp_1
restart: always
ports:
- '11100:4661'
- '12100:4665'
environment:
COVENANT_ROLE: blockproducer
COVENANT_CONF: ./node_1/config.yaml
METRIC_WEB_ADDR: '0.0.0.0:4665'
volumes:
- ./test/service/node_1/:/app/node_1/
networks:
default:
ipv4_address: 172.254.1.3
logging:
driver: 'json-file'
options:
max-size: '1m'
max-file: '10'
covenantsql_bp_2:
image: covenantsql/covenantsql:latest
container_name: covenantsql_bp_2
restart: always
ports:
- '11101:4661'
- '12101:4665'
environment:
COVENANT_ROLE: blockproducer
COVENANT_CONF: ./node_2/config.yaml
METRIC_WEB_ADDR: '0.0.0.0:4665'
volumes:
- ./test/service/node_2/:/app/node_2/
networks:
default:
ipv4_address: 172.254.1.4
logging:
driver: 'json-file'
options:
max-size: '1m'
max-file: '10'
covenantsql_miner_0:
image: covenantsql/covenantsql:latest
container_name: covenantsql_miner_0
restart: always
ports:
- '11102:4661'
- '12102:4665'
environment:
COVENANT_ROLE: miner
COVENANT_CONF: ./node_miner_0/config.yaml
METRIC_WEB_ADDR: '0.0.0.0:4665'
volumes:
- ./test/service/node_miner_0/:/app/node_miner_0/
networks:
default:
ipv4_address: 172.254.1.5
logging:
driver: 'json-file'
options:
max-size: '1m'
max-file: '10'
covenantsql_miner_1:
image: covenantsql/covenantsql:latest
container_name: covenantsql_miner_1
restart: always
ports:
- '11103:4661'
- '12103:4665'
environment:
COVENANT_ROLE: miner
COVENANT_CONF: ./node_miner_1/config.yaml
METRIC_WEB_ADDR: '0.0.0.0:4665'
volumes:
- ./test/service/node_miner_1/:/app/node_miner_1/
networks:
default:
ipv4_address: 172.254.1.6
logging:
driver: 'json-file'
options:
max-size: '1m'
max-file: '10'
covenantsql_miner_2:
image: covenantsql/covenantsql:latest
container_name: covenantsql_miner_2
restart: always
ports:
- '11104:4661'
- '12104:4665'
environment:
COVENANT_ROLE: miner
COVENANT_CONF: ./node_miner_2/config.yaml
METRIC_WEB_ADDR: '0.0.0.0:4665'
volumes:
- ./test/service/node_miner_2/:/app/node_miner_2/
networks:
default:
ipv4_address: 172.254.1.7
logging:
driver: 'json-file'
options:
max-size: '1m'
max-file: '10'
covenantsql_adapter:
image: covenantsql/covenantsql:latest
container_name: covenantsql_adapter
restart: always
ports:
- '11105:4661'
environment:
COVENANT_ROLE: adapter
COVENANT_CONF: ./node_adapter/config.yaml
COVENANTSQL_ADAPTER_ADDR: 0.0.0.0:4661
volumes:
- ./test/service/node_adapter/:/app/node_adapter/
networks:
default:
ipv4_address: 172.254.1.8
covenantsql_mysql_adapter:
image: covenantsql/covenantsql:latest
container_name: covenantsql_mysql_adapter
restart: always
ports:
- '11107:4664'
command: ['-listen', '0.0.0.0:4664']
environment:
COVENANT_ROLE: mysql-adapter
COVENANT_CONF: ./node_mysql_adapter/config.yaml
volumes:
- ./test/service/node_mysql_adapter/:/app/node_mysql_adapter/
networks:
default:
ipv4_address: 172.254.1.10
logging:
driver: 'json-file'
options:
max-size: '1m'
max-file: '10'
covenantsql_explorer:
image: covenantsql/covenantsql:latest
container_name: covenantsql_explorer
restart: always
ports:
- '11108:4663'
environment:
COVENANT_ROLE: explorer
COVENANT_CONF: ./node_explorer/config.yaml
COVENANTSQL_OBSERVER_ADDR: 0.0.0.0:4663
volumes:
- ./test/service/node_explorer/:/app/node_explorer/
networks:
default:
ipv4_address: 172.254.1.9
logging:
driver: 'json-file'
options:
max-size: '10m'
covenantsql_fn_0:
image: covenantsql/covenantsql:latest
container_name: covenantsql_fn_0
restart: always
ports:
- '11110:8546'
command: ['-wsapi', ':8546']
# entrypoint: ["sh"]
environment:
COVENANT_ROLE: blockproducer
COVENANT_CONF: ./fullnode_0/config.yaml
volumes:
- ./test/service/fullnode_0/:/app/fullnode_0/
networks:
default:
ipv4_address: 172.254.1.11
logging:
driver: 'json-file'
options:
max-size: '10m'
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.254.1.0/24