forked from akash-network/awesome-akash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.yml
217 lines (217 loc) · 4.81 KB
/
deploy.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
212
213
214
215
216
217
---
version: "2.0"
services:
mongo:
image: mongo:latest
expose:
- port: 27017
as: 27017
proto: tcp
to:
- global: false
- service: rair-front
- service: rair-node
- service: rair-stream
- service: rair-sync
- service: redis
env:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
- MONGO_INITDB_DATABASE=rair-db
rair-front:
image: rairprotocol/rair-front:4d031fe33f37417ba454543eccf6b20e05daed07
expose:
- port: 80
as: 80
to:
- global: true
- service: rair-node
- service: rair-stream
- service: rair-sync
- service: redis
- service: mongo
env:
- Environment=Variables
rair-node:
image: rairprotocol/rair-node:4d031fe33f37417ba454543eccf6b20e05daed07
expose:
- port: 3000
as: 3000
proto: tcp
to:
- global: false
- service: rair-front
- service: rair-stream
- service: rair-sync
- service: redis
- service: mongo
- port: 5000
as: 5000
proto: tcp
to:
- global: false
- service: rair-front
- service: rair-stream
- service: rair-sync
env:
- MONGO_URI_LOCAL=mongodb://admin:admin@mongo:27017/rair-db?authSource=admin
- ADMIN_NETWORK=0x2105
- ADMIN_CONTRACT=0xfc3666266d129504dd6c713f9bce107747ae4aee
- APP_NAME=Test_Deployment
- REDIS_HOST=redis
- REDIS_PORT=6379
- SESSION_SECRET=testing
- BASE_BCN_URL=http://rair-sync:5001
rair-stream:
image: rairprotocol/rair-stream:4d031fe33f37417ba454543eccf6b20e05daed07
expose:
- port: 5002
as: 5002
proto: tcp
to:
- global: false
- service: rair-front
- service: rair-node
- service: rair-sync
- service: redis
- service: mongo
env:
- REDIS_HOST=redis
- REDIS_PORT=6379
- BASE_RAIRNODE_URL=http://rair-node:5000
rair-sync:
image: rairprotocol/rair-sync:4d031fe33f37417ba454543eccf6b20e05daed07
expose:
- port: 5001
as: 5001
proto: tcp
to:
- global: false
- service: rair-front
- service: rair-node
- service: rair-stream
- service: redis
- service: mongo
env:
- MONGO_URI_LOCAL=mongodb://admin:admin@mongo:27017/rair-db?authSource=admin
- BASE_RAIRNODE_URL=http://rair-node:5000
- REDIS_HOST=redis
- REDIS_PORT=6379
- SYNC_CONTRACT_REPEAT_EVERY=30
- SYNC_CONTRACT_TASK_INTERVAL=5
- DEFAULT_PRODUCT_COVER=https://rair.myfilebase.com/ipfs/QmcV94NurwfWVGpXTST1we8uDbYiVQamKe87WEHK6DRzqa
redis:
image: redis:6.2.3-alpine
expose:
- port: 6379
as: 6379
proto: tcp
to:
- global: false
- service: rair-front
- service: rair-node
- service: rair-stream
- service: rair-sync
- service: mongo
command:
- redis-server
args:
- "--protected-mode no"
env:
- Environment=Variables
profiles:
compute:
mongo:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
- size: 5Gi
rair-front:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
- size: 5Gi
rair-node:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
- size: 5Gi
rair-stream:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
- size: 5Gi
rair-sync:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
- size: 5Gi
redis:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
- size: 5Gi
placement:
dcloud:
pricing:
mongo:
denom: uakt
amount: 1000
rair-front:
denom: uakt
amount: 1000
rair-node:
denom: uakt
amount: 1000
rair-stream:
denom: uakt
amount: 1000
rair-sync:
denom: uakt
amount: 1000
redis:
denom: uakt
amount: 1000
deployment:
mongo:
dcloud:
profile: mongo
count: 1
rair-front:
dcloud:
profile: rair-front
count: 1
rair-node:
dcloud:
profile: rair-node
count: 1
rair-stream:
dcloud:
profile: rair-stream
count: 1
rair-sync:
dcloud:
profile: rair-sync
count: 1
redis:
dcloud:
profile: redis
count: 1