-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose
More file actions
255 lines (237 loc) · 6.44 KB
/
compose
File metadata and controls
255 lines (237 loc) · 6.44 KB
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
version: '3.7'
volumes:
catalogdb: { }
cassandradb: { }
logs: {}
pgdb: {}
networks:
catalogn: { }
services:
postgres:
image: postgres:15.5
profiles: ["pg", "db", "jobs", "minimal", "catalog", "all"]
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
ports:
- "5432:5432"
volumes:
- ./setup/postgres/data:/var/lib/postgresql/data
- ./setup/postgres/certs:/opt/postgres/certs:r
- ./setup/postgres/scripts/:/docker-entrypoint-initdb.d/
- ./setup/postgres/conf:/var/lib/postgresql/conf
container_name: postgres
command: postgres -c config_file=/var/lib/postgresql/conf/postgresql.conf -c ssl=${SSL_STATE}
networks:
catalogn:
aliases:
- postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: "10s"
timeout: "10s"
retries: 3
pg-data:
image: postgres:15.5
profiles: ["pg", "db", "jobs", "minimal", "catalog", "all"]
environment:
- PG_USER=postgres
- PGPASSWORD=password
- PG_HOST=postgres
container_name: pg-data
volumes:
- ./setup/pg-data/files/scripts:/tmp/scripts
- ./setup/pg-data/files/sql:/tmp/data
networks:
catalogn:
aliases:
- pg-data
command:
- /bin/bash
- -c
- /tmp/scripts/init.sh
depends_on:
postgres:
condition: service_healthy
cassandra:
image: cassandra:3.11.16
profiles: ["cassandra", "db", "all"]
environment:
- DS_LICENSE=accept
- SSL_VALIDATE=true
ports:
- "9042:9042"
container_name: cassandra
volumes:
- ./setup/cassandra/data:/opt/cassandra/data
- ./setup/cassandra/certs:/opt/cassandra/certs:r
- ./setup/cassandra/conf/cassandra.yaml:/opt/cassandra/conf/cassandra.yaml
networks:
catalogn:
aliases:
- cassandra
healthcheck:
test: ["CMD-SHELL", "[ $$(nodetool statusgossip) = running ]"]
interval: 20s
timeout: 10s
retries: 3
cass-data:
image: cassandra:3.11.16
profiles: ["cassandra", "db", "all"]
environment:
- CASS_USER=cassandra
- CASS_PASSWORD=cassandra
- CASSANDRA_HOST=cassandra
container_name: cass-data
volumes:
- ./setup/cass-data/files/scripts:/tmp/scripts
- ./setup/cass-data/files/cql:/tmp/data
networks:
catalogn:
aliases:
- cass-data
command:
- /bin/bash
- -c
- /tmp/scripts/init.sh
depends_on:
cassandra:
condition: service_healthy
kafka:
image: bitnami/kafka:3.4.1-debian-11-r117
profiles: ["kafka", "all"]
ports:
- "9092:9092"
- "9094:9094"
volumes:
- "./setup/kafka/data:/bitnami"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_NODE_ID=1
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=1@localhost:9093
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
container_name: kafka
networks:
catalogn:
aliases:
- kafka
healthcheck:
test: ["CMD-SHELL", "bash", "-c", "kafka-topics.sh", "--list", "--bootstrap.server", "localhost:9092"]
interval: 30s
timeout: 10s
retries: 3
kafka-setup:
image: bitnami/kafka:3.4.1-debian-11-r117
profiles: ["kafka", "all"]
environment:
- TOPICS=servicing.customer-events,payment.card-payment
- KAFKA_HOST=kafka
container_name: kafka-setup
volumes:
- './setup/kafka-setup/files/scripts:/tmp/scripts'
command: ['/bin/bash', '-c', '/tmp/scripts/init.sh']
depends_on:
kafka:
condition: service_healthy
networks:
catalogn:
aliases:
- kafka-setup
airflow:
image: skhatri/airflow:2.0.2
profiles: ["jobs", "all"]
restart: always
depends_on:
postgres:
condition: service_healthy
pg-data:
condition: service_completed_successfully
container_name: airflow
environment:
- LOAD_EX=n
- EXECUTOR=Local
volumes:
- ./setup/airflow/dags:/opt/airflow/dags
- ./setup/airflow/logs:/opt/airflow/logs
- ./setup/airflow/conf/airflow.cfg:/opt/airflow/airflow.cfg
ports:
- "8280:8080"
command: embedded
networks:
catalogn:
aliases:
- airflow
healthcheck:
test: ["CMD-SHELL", "[ -f /opt/airflow/airflow-webserver.pid ]"]
interval: "20s"
timeout: "20s"
retries: 3
k8s-read:
image: skhatri/go-http-cache:v1.0.5
profiles: ["k8s", "minimal", "all"]
restart: always
container_name: k8s-read
environment:
- TARGET=http://k8s-read.ops-catalog.io:80
- TARGET_DESC="wont be called as we are using cached data"
- CONFIG_FILE=/conf/config.yaml
- LOG_MISS=true
- IGNORE_HEADERS=true
- LISTEN_ADDRESS=k8s-read:6100
volumes:
- ./setup/k8s-proxy-cache/cache:/tmp/cache
ports:
- "6100:6100"
networks:
catalogn:
aliases:
- k8s-read
ops-catalog:
image: opscatalog/catalog:v0.3.2
profiles: ["catalog", "minimal", "all"]
restart: always
container_name: ops-catalog
environment:
- LOG_LEVEL="INFO"
- CONFIG_FILE=/opt/conf/config.yaml
- SSL_STATE=${SSL_STATE}
volumes:
- ./setup/ops-catalog/conf/${MODE}.yaml:/opt/conf/config.yaml
- ./../datasets:/opt/examples/datasets
- ./../secrets:/opt/secrets
depends_on:
postgres:
condition: service_healthy
pg-data:
condition: service_completed_successfully
ports:
- "8080:8080"
networks:
catalogn:
aliases:
- ops-catalog
ui:
image: opscatalog/backstage-ui:latest
profiles: ["catalog", "minimal", "all"]
restart: always
container_name: ui
environment:
- NODE_ENV=development
- ENVIRONMENT_CONFIG=local
- NODE_TLS_REJECT_UNAUTHORIZED=0
- CATALOG_URL=http://ops-catalog:8080/api/catalog
volumes:
- ./setup/ui/conf/:/app/conf
depends_on: {}
ports:
- "7007:7007"
networks:
catalogn:
aliases:
- ui