forked from akash-network/awesome-akash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yml
157 lines (146 loc) · 3.59 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
---
version: '2'
services:
postgresql:
image: docker.io/bitnami/postgresql:11
expose:
- port: 5432
proto: tcp
to:
- service: redis
- service: discourse
- service: sidekiq
env:
- ALLOW_EMPTY_PASSWORD=yes
- POSTGRESQL_USERNAME=akt_discourse
- POSTGRESQL_DATABASE=akash_discourse
## Set if ALLOW_EMPTY_PASSWORD=no
#- POSTGRESQL_PASSWORD=changeme
#- POSTGRESQL_POSTGRES_PASSWORD=changeme
redis:
image: docker.io/bitnami/redis:6.0
expose:
- port: 6379
proto: tcp
to:
- service: discourse
- service: sidekiq
env:
- ALLOW_EMPTY_PASSWORD=yes
## Set if ALLOW_EMPTY_PASSWORD=no
#- REDIS_PASSWORD=changeme
discourse:
image: docker.io/bitnami/discourse:2
expose:
- port: 3000
to:
- global: true
depends_on:
- postgresql
- redis
env:
- ALLOW_EMPTY_PASSWORD=yes
- DISCOURSE_HOST=localhost
- DISCOURSE_DATABASE_HOST=postgresql
- DISCOURSE_DATABASE_PORT_NUMBER=5432
- DISCOURSE_DATABASE_USER=akt_discourse
- DISCOURSE_DATABASE_PASSWORD=changeme
- DISCOURSE_DATABASE_NAME=akash_discourse
- DISCOURSE_REDIS_HOST=redis
- DISCOURSE_REDIS_PORT_NUMBER=6379
- POSTGRESQL_CLIENT_POSTGRES_USER=postgres
- POSTGRESQL_CLIENT_CREATE_DATABASE_NAME=akash_discourse
- POSTGRESQL_CLIENT_CREATE_DATABASE_USER=akt_discourse
- POSTGRESQL_CLIENT_CREATE_DATABASE_EXTENSIONS=hstore,pg_trgm
## Set if ALLOW_EMPTY_PASSWORD=no
#- DISCOURSE_DATABASE_PASSWORD=changeme
#- DISCOURSE_REDIS_PASSWORD=changeme
#- POSTGRESQL_CLIENT_POSTGRES_PASSWORD=changeme
#- POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD=changeme
sidekiq:
image: docker.io/bitnami/discourse:latest
depends_on:
- discourse
args:
- /opt/bitnami/scripts/discourse-sidekiq/run.sh
env:
- ALLOW_EMPTY_PASSWORD=yes
- DISCOURSE_HOST=localhost
- DISCOURSE_DATABASE_HOST=postgresql
- DISCOURSE_DATABASE_PORT_NUMBER=5432
- DISCOURSE_DATABASE_USER=akt_discourse
- DISCOURSE_DATABASE_PASSWORD=changeme
- DISCOURSE_DATABASE_NAME=akash_discourse
- DISCOURSE_REDIS_HOST=redis
- DISCOURSE_REDIS_PORT_NUMBER=6379
## Set if ALLOW_EMPTY_PASSWORD=no
#- DISCOURSE_DATABASE_PASSWORD=changeme
#- DISCOURSE_REDIS_PASSWORD=changeme
profiles:
compute:
postgresql:
resources:
cpu:
units: 1
memory:
size: 1Gi
storage:
size: 1Gi
redis:
resources:
cpu:
units: 1
memory:
size: 1Gi
storage:
size: 1Gi
discourse:
resources:
cpu:
units: 1
memory:
size: 1Gi
storage:
size: 1Gi
sidekiq:
resources:
cpu:
units: 1
memory:
size: 1Gi
storage:
size: 1Gi
placement:
westcoast:
attributes:
host: akash
pricing:
postgresql:
denom: uakt
amount: 10000
redis:
denom: uakt
amount: 10000
discourse:
denom: uakt
amount: 10000
sidekiq:
denom: uakt
amount: 10000
deployment:
postgresql:
westcoast:
profile: postgresql
count: 1
redis:
westcoast:
profile: redis
count: 1
discourse:
westcoast:
profile: discourse
count: 1
sidekiq:
westcoast:
profile: sidekiq
count: 1