forked from akash-network/awesome-akash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.yaml
169 lines (167 loc) · 3.65 KB
/
deploy.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
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
---
version: "2.0"
services:
botpress:
image: botpress/server:latest
#Stable Release : latest
#Pre-Release : master
#http://botpress-docs.s3-website-us-east-1.amazonaws.com/versions/
#https://hub.docker.com/r/botpress/server/tags
expose:
- port: 3000
as: 80
to:
- global: true
env:
- BP_PRODUCTION=true
- DATABASE_URL=postgres://bp_user:PG_PASSWORD@postgres:5432/botpress_db
- REDIS_URL=redis://redis:6379?password=redisPassword
- BP_MODULE_NLU_DUCKLINGURL=http://duckling:8000
- BP_MODULE_NLU_LANGUAGESOURCES=[{"endpoint":"http://lang:3100"}]
- CLUSTER_ENABLED=false
- BPFS_STORAGE=database
- BP_MAX_SERVER_REBOOT=999
depends_on:
- postgres
- duckling
- lang
duckling:
image: rasa/duckling:latest
expose:
- port: 8000
as: 8000
to:
- global: false
- service: botpress
lang:
image: botpress/server:latest
#Stable Release : latest
#Pre-Release : master
#http://botpress-docs.s3-website-us-east-1.amazonaws.com/versions/
#https://hub.docker.com/r/botpress/server/tags
expose:
- port: 3100
as: 3100
to:
- global: false
- service: botpress
command:
- ./bp
- lang
- "--langDir"
- /botpress/language
- "--port"
- "3100"
redis:
image: redis:5.0.5-alpine
expose:
- port: 6379
as: 6379
to:
- service: botpress
command:
- redis-server
- --requirepass
- redisPassword
postgres:
image: postgres:13-alpine
expose:
- port: 5432
as: 5432
to:
- global: false
- service: botpress
env:
- POSTGRES_USER=bp_user
- POSTGRES_PASSWORD=PG_PASSWORD
- POSTGRES_DB=botpress_db
profiles:
compute:
botpress:
resources:
cpu:
units: 4
memory:
size: 8Gi
storage:
- size: 32Gi
duckling:
resources:
cpu:
units: 0.5
memory:
size: 1Gi
storage:
- size: 1Gi
lang:
resources:
cpu:
units: 8
memory:
size: 8Gi
storage:
- size: 32Gi
postgres:
resources:
cpu:
units: 0.5
memory:
size: 1Gi
storage:
- size: 20Gi
redis:
resources:
cpu:
units: 0.5
memory:
size: 1Gi
storage:
- size: 2Gi
placement:
akash:
#######################################################
#Keep this section to deploy on trusted providers
signedBy:
anyOf:
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
#######################################################
#Remove this section to deploy on untrusted providers
#Beware* You may have deployment, security, or other issues on untrusted providers
#https://akash.network/docs/providers/audited-attributes
pricing:
botpress:
denom: uakt
amount: 10000
duckling:
denom: uakt
amount: 10000
lang:
denom: uakt
amount: 10000
postgres:
denom: uakt
amount: 10000
redis:
denom: uakt
amount: 10000
deployment:
botpress:
akash:
profile: botpress
count: 1
duckling:
akash:
profile: duckling
count: 1
lang:
akash:
profile: lang
count: 1
postgres:
akash:
profile: postgres
count: 1
redis:
akash:
profile: redis
count: 1