forked from akash-network/awesome-akash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.full.pg.yaml
144 lines (133 loc) · 2.91 KB
/
deployment.full.pg.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
---
version: "2.0"
endpoints:
nodeendpoint-pg:
kind: ip
services:
node:
image: quay.io/vpavlin0/wakash:7023f48
depends_on:
- postgres
expose:
- port: 60000
as: 60000
proto: tcp
to:
- global: true
ip: nodeendpoint-pg
- port: 8003
as: 8003
proto: tcp
to:
- global: true
ip: nodeendpoint-pg
- port: 9005
proto: udp
to:
- global: true
ip: nodeendpoint-pg
- port: 8000
as: 8000
proto: tcp
to:
- global: true
ip: nodeendpoint-pg
- port: 80
as: 80
to:
- global: true
ip: nodeendpoint-pg
params:
storage:
certs:
mount: /etc/letsencrypt
env:
- DOMAIN=
- IP_ADDR=
- NODEKEY=
- POSTGRES_USER=waku
- "POSTGRES_PASSWORD=secretpassword"
args:
- --relay=true
- --filter=true
- --lightpush=true
- --pubsub-topic=/waku/2/default-waku/proto
- --pubsub-topic=/waku/2/dev-waku/proto
- --keep-alive=true
- --peer-exchange=true
- --max-connections=300
- --dns-discovery=true
- --dns-discovery-url=enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.waku.nodes.status.im
- --discv5-discovery=true
- --discv5-udp-port=9005
- --discv5-enr-auto-update=True
- --log-level=DEBUG
- --metrics-server=True
- --metrics-server-port=8003
- --metrics-server-address=0.0.0.0
- --store=true
- --store-message-retention-policy=time:2592000
postgres:
image: postgres
expose:
- port: 5432
to:
- service: node
params:
storage:
data:
mount: /var/lib/postgresql/
env:
- POSTGRES_USER=waku
- "POSTGRES_PASSWORD=secretpassword"
- POSTGRES_DB=waku
profiles:
compute:
postgres:
resources:
cpu:
units: 0.5
memory:
size: 1Gi
storage:
- name: data
size: 5Gi
attributes:
persistent: true
class: beta3
node:
resources:
cpu:
units: 0.5
memory:
size: 1Gi
storage:
- name: certs
size: 100Mi
attributes:
persistent: true
class: beta3
placement:
westcoast:
attributes:
host: akash
signedBy:
anyOf:
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
- "akash18qa2a2ltfyvkyj0ggj3hkvuj6twzyumuaru9s4"
pricing:
postgres:
denom: uakt
amount: 100000
node:
denom: uakt
amount: 100000
deployment:
postgres:
westcoast:
profile: postgres
count: 1
node:
westcoast:
profile: node
count: 1