-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
263 lines (252 loc) · 7.4 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
version: "3.9"
services:
db:
image: postgres:14.1-alpine
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_DB: storke_central
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
jaeger:
image: jaegertracing/all-in-one:1.47
ports:
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "4317:4317"
- "4318:4318"
- "14250:14250"
- "14268:14268"
- "14269:14269"
- "9411:9411"
environment:
COLLECTOR_ZIPKIN_HOST_PORT: 9411
COLLECTOR_OTLP_ENABLED: true
montecito:
container_name: montecito
depends_on:
- db
- rincon
- jaeger
build: ./montecito
image: bk1031/sc_montecito
ports:
- "${MONTECITO_PORT}:${MONTECITO_PORT}"
environment:
ENV: $ENV
SERVICE_NAME: "Montecito"
PORT: $MONTECITO_PORT
RINCON_PORT: $RINCON_PORT
JAEGER_PORT: $JAEGER_PORT
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
DISCORD_TOKEN: $DISCORD_TOKEN
DISCORD_GUILD: $DISCORD_GUILD
DISCORD_CHANNEL: $MONTECITO_DISCORD_CHANNEL
STATUS_EMAIL: $MONTECITO_STATUS_EMAIL
FIREBASE_PROJECT_ID: $FIREBASE_PROJECT_ID
FIREBASE_SERVICE_ACCOUNT: $FIREBASE_SERVICE_ACCOUNT
rincon:
container_name: rincon
depends_on:
- db
- jaeger
build: ./rincon
image: bk1031/sc_rincon
ports:
- "${RINCON_PORT}:${RINCON_PORT}"
environment:
ENV: $ENV
SERVICE_NAME: "Rincon"
PORT: $RINCON_PORT
JAEGER_PORT: $JAEGER_PORT
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
EMAIL_ADDRESS: $RINCON_EMAIL_ADDRESS
EMAIL_PASSWORD: $RINCON_EMAIL_PASSWORD
DISCORD_TOKEN: $DISCORD_TOKEN
DISCORD_GUILD: $DISCORD_GUILD
DISCORD_CHANNEL: $RINCON_DISCORD_CHANNEL
STATUS_EMAIL: $RINCON_STATUS_EMAIL
REGISTRY_UPDATE_CRON: $RINCON_REGISTRY_UPDATE_CRON
lacumbre:
container_name: lacumbre
depends_on:
- db
- rincon
build: ./lacumbre
image: bk1031/sc_lacumbre
ports:
- "${LACUMBRE_PORT}:${LACUMBRE_PORT}"
environment:
ENV: $ENV
SERVICE_NAME: "Lacumbre"
PORT: $LACUMBRE_PORT
RINCON_PORT: $RINCON_PORT
JAEGER_PORT: $JAEGER_PORT
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
DISCORD_TOKEN: $DISCORD_TOKEN
DISCORD_GUILD: $DISCORD_GUILD
DISCORD_CHANNEL: $LACUMBRE_DISCORD_CHANNEL
STATUS_EMAIL: $LACUMBRE_STATUS_EMAIL
FIREBASE_PROJECT_ID: $FIREBASE_PROJECT_ID
FIREBASE_SERVICE_ACCOUNT: $FIREBASE_SERVICE_ACCOUNT
gaviota:
container_name: gaviota
depends_on:
- db
- rincon
build: ./gaviota
image: bk1031/sc_gaviota
ports:
- "${GAVIOTA_PORT}:${GAVIOTA_PORT}"
environment:
ENV: $ENV
SERVICE_NAME: "Gaviota"
PORT: $GAVIOTA_PORT
RINCON_PORT: $RINCON_PORT
JAEGER_PORT: $JAEGER_PORT
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
DISCORD_TOKEN: $DISCORD_TOKEN
DISCORD_GUILD: $DISCORD_GUILD
DISCORD_CHANNEL: $GAVIOTA_DISCORD_CHANNEL
STATUS_EMAIL: $GAVIOTA_STATUS_EMAIL
FIREBASE_PROJECT_ID: $FIREBASE_PROJECT_ID
FIREBASE_SERVICE_ACCOUNT: $FIREBASE_SERVICE_ACCOUNT
ARTICLE_UPDATE_CRON: $GAVIOTA_ARTICLE_UPDATE_CRON
tepusquet:
container_name: tepusquet
depends_on:
- db
- rincon
build: ./tepusquet
image: bk1031/sc_tepusquet
ports:
- "${TEPUSQUET_PORT}:${TEPUSQUET_PORT}"
deploy:
mode: global
resources:
limits:
memory: 2gb
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
environment:
ENV: $ENV
SERVICE_NAME: "Tepusquet"
PORT: $TEPUSQUET_PORT
RINCON_PORT: $RINCON_PORT
JAEGER_PORT: $JAEGER_PORT
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
DISCORD_TOKEN: $DISCORD_TOKEN
DISCORD_GUILD: $DISCORD_GUILD
DISCORD_CHANNEL: $TEPUSQUET_DISCORD_CHANNEL
STATUS_EMAIL: $TEPUSQUET_STATUS_EMAIL
FIREBASE_PROJECT_ID: $FIREBASE_PROJECT_ID
FIREBASE_SERVICE_ACCOUNT: $FIREBASE_SERVICE_ACCOUNT
CRED_ENCRYPTION_KEY: $TEPUSQUET_CRED_ENCRYPTION_KEY
UP_NEXT_UPDATE_CRON: $TEPUSQUET_UP_NEXT_UPDATE_CRON
NOTIFICATION_CRON: $TEPUSQUET_NOTIFICATION_CRON
CURRENT_QUARTER: $TEPUSQUET_CURRENT_QUARTER
CURRENT_PASSTIME_QUARTER: $TEPUSQUET_CURRENT_PASSTIME_QUARTER
arguello:
container_name: arguello
depends_on:
- db
- rincon
build: ./arguello
image: bk1031/sc_arguello
ports:
- "${ARGUELLO_PORT}:${ARGUELLO_PORT}"
environment:
ENV: $ENV
SERVICE_NAME: "Arguello"
PORT: $ARGUELLO_PORT
RINCON_PORT: $RINCON_PORT
JAEGER_PORT: $JAEGER_PORT
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
DISCORD_TOKEN: $DISCORD_TOKEN
DISCORD_GUILD: $DISCORD_GUILD
DISCORD_CHANNEL: $ARGUELLO_DISCORD_CHANNEL
STATUS_EMAIL: $ARGUELLO_STATUS_EMAIL
FIREBASE_PROJECT_ID: $FIREBASE_PROJECT_ID
FIREBASE_SERVICE_ACCOUNT: $FIREBASE_SERVICE_ACCOUNT
miranda:
container_name: miranda
depends_on:
- db
- rincon
build: ./miranda
image: bk1031/sc_miranda
ports:
- "${MIRANDA_PORT}:${MIRANDA_PORT}"
environment:
ENV: $ENV
SERVICE_NAME: "Miranda"
PORT: $MIRANDA_PORT
RINCON_PORT: $RINCON_PORT
JAEGER_PORT: $JAEGER_PORT
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
DISCORD_TOKEN: $DISCORD_TOKEN
DISCORD_GUILD: $DISCORD_GUILD
DISCORD_CHANNEL: $MIRANDA_DISCORD_CHANNEL
STATUS_EMAIL: $MIRANDA_STATUS_EMAIL
FIREBASE_PROJECT_ID: $FIREBASE_PROJECT_ID
FIREBASE_SERVICE_ACCOUNT: $FIREBASE_SERVICE_ACCOUNT
ONESIGNAL_APP_ID: $MIRANDA_ONESIGNAL_APP_ID
ONESIGNAL_API_KEY: $MIRANDA_ONESIGNAL_API_KEY
jalama:
container_name: jalama
depends_on:
- db
- rincon
build: ./jalama
image: bk1031/sc_jalama
ports:
- "${JALAMA_PORT}:${JALAMA_PORT}"
environment:
ENV: $ENV
SERVICE_NAME: "Jalama"
PORT: $JALAMA_PORT
RINCON_PORT: $RINCON_PORT
JAEGER_PORT: $JAEGER_PORT
POSTGRES_HOST: $POSTGRES_HOST
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
DISCORD_TOKEN: $DISCORD_TOKEN
DISCORD_GUILD: $DISCORD_GUILD
DISCORD_CHANNEL: $JALAMA_DISCORD_CHANNEL
STATUS_EMAIL: $JALAMA_STATUS_EMAIL
FIREBASE_PROJECT_ID: $FIREBASE_PROJECT_ID
FIREBASE_SERVICE_ACCOUNT: $FIREBASE_SERVICE_ACCOUNT
MEAL_UPDATE_DAYS: $JALAMA_MEAL_UPDATE_DAYS
MEAL_UPDATE_CRON: $JALAMA_MEAL_UPDATE_CRON
UCSB_API_KEY: $UCSB_API_KEY
volumes:
pgdata: