-
Notifications
You must be signed in to change notification settings - Fork 169
/
native.yml
257 lines (243 loc) · 7.66 KB
/
native.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
#######################################################################
# THIS FILE IS AUTOMATICALLY GENERATED DURING CI/CD.
# ANY LOCAL CHANGES YOU MAKE SHOULD NOT BE COMMITTED TO SOURCE CONTROL.
#######################################################################
version: "3"
services:
fights-db:
image: mongo:7.0
container_name: fights-db
ports:
- "27017"
environment:
MONGO_INITDB_DATABASE: fights
MONGO_INITDB_ROOT_USERNAME: super
MONGO_INITDB_ROOT_PASSWORD: super
volumes:
- ../../rest-fights/deploy/db-init/initialize-database.js:/docker-entrypoint-initdb.d/1-init-db.js
apicurio:
image: quay.io/apicurio/apicurio-registry-mem:2.6.5.Final
container_name: apicurio
ports:
- "8086:8086"
environment:
REGISTRY_AUTH_ANONYMOUS_READ_ACCESS_ENABLED: "true"
QUARKUS_HTTP_PORT: 8086
fights-kafka:
image: quay.io/strimzi/kafka:0.43.0-kafka-3.8.0
container_name: fights-kafka
depends_on:
- apicurio
command:
- "sh"
- "-c"
- "export CLUSTER_ID=$$(bin/kafka-storage.sh random-uuid) && bin/kafka-storage.sh format -t $${CLUSTER_ID} -c config/kraft/server.properties && bin/kafka-server-start.sh config/kraft/server.properties --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS}"
ports:
- "9092:9092"
environment:
LOG_DIR: /tmp/logs
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://fights-kafka:9092
rest-fights-native:
image: quay.io/quarkus-super-heroes/rest-fights:native-latest
container_name: rest-fights-native
depends_on:
- fights-db
- apicurio
- fights-kafka
ports:
- "8082:8082"
environment:
QUARKUS_MONGODB_HOSTS: fights-db:27017
KAFKA_BOOTSTRAP_SERVERS: PLAINTEXT://fights-kafka:9092
QUARKUS_LIQUIBASE_MONGODB_MIGRATE_AT_START: "false"
QUARKUS_MONGODB_CREDENTIALS_USERNAME: superfight
QUARKUS_MONGODB_CREDENTIALS_PASSWORD: superfight
QUARKUS_STORK_HERO_SERVICE_SERVICE_DISCOVERY_ADDRESS_LIST: rest-heroes:8083
QUARKUS_STORK_VILLAIN_SERVICE_SERVICE_DISCOVERY_ADDRESS_LIST: rest-villains:8084
QUARKUS_STORK_NARRATION_SERVICE_SERVICE_DISCOVERY_ADDRESS_LIST: rest-narration:8087
QUARKUS_GRPC_CLIENTS_LOCATIONS_HOST: grpc-locations
QUARKUS_GRPC_CLIENTS_LOCATIONS_PORT: 8089
MP_MESSAGING_CONNECTOR_SMALLRYE_KAFKA_APICURIO_REGISTRY_URL: http://apicurio:8086/apis/registry/v2
QUARKUS_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://otel-collector:4317
restart: on-failure
networks:
default:
aliases:
- rest-fights
deploy:
resources:
limits:
memory: 1G
cpus: '1'
reservations:
memory: 256M
cpus: '0.5'
villains-db:
image: postgres:16
container_name: villains-db
ports:
- "5432"
environment:
POSTGRES_USER: superbad
POSTGRES_PASSWORD: superbad
POSTGRES_DB: villains_database
volumes:
- ../../rest-villains/deploy/db-init/initialize-tables.sql:/docker-entrypoint-initdb.d/1-init-tables.sql
heroes-db:
image: postgres:16
container_name: heroes-db
ports:
- "5432"
environment:
POSTGRES_USER: superman
POSTGRES_PASSWORD: superman
POSTGRES_DB: heroes_database
volumes:
- ../../rest-heroes/deploy/db-init/initialize-tables.sql:/docker-entrypoint-initdb.d/1-init-tables.sql
locations-db:
image: mariadb:11.5
container_name: locations-db
ports:
- "3306"
environment:
MARIADB_USER: locations
MARIADB_PASSWORD: locations
MARIADB_DATABASE: locations_database
MARIADB_ROOT_PASSWORD: locations
MARIADB_SKIP_TEST_DB: yes
volumes:
- ../../grpc-locations/deploy/db-init/initialize-tables.sql:/docker-entrypoint-initdb.d/1-init-tables.sql
rest-villains-native:
image: quay.io/quarkus-super-heroes/rest-villains:native-latest
container_name: rest-villains-native
depends_on:
- villains-db
ports:
- "8084:8084"
environment:
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://villains-db:5432/villains_database
QUARKUS_HIBERNATE_ORM_DATABASE_GENERATION: validate
QUARKUS_DATASOURCE_USERNAME: superbad
QUARKUS_DATASOURCE_PASSWORD: superbad
QUARKUS_HIBERNATE_ORM_SQL_LOAD_SCRIPT: no-file
QUARKUS_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://otel-collector:4317
restart: on-failure
networks:
default:
aliases:
- rest-villains
deploy:
resources:
limits:
memory: 1G
cpus: '1'
reservations:
memory: 256M
cpus: '0.5'
rest-heroes-native:
image: quay.io/quarkus-super-heroes/rest-heroes:native-latest
container_name: rest-heroes-native
depends_on:
- heroes-db
ports:
- "8083:8083"
environment:
QUARKUS_DATASOURCE_REACTIVE_URL: postgresql://heroes-db:5432/heroes_database
QUARKUS_HIBERNATE_ORM_DATABASE_GENERATION: validate
QUARKUS_DATASOURCE_USERNAME: superman
QUARKUS_DATASOURCE_PASSWORD: superman
QUARKUS_HIBERNATE_ORM_SQL_LOAD_SCRIPT: no-file
QUARKUS_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://otel-collector:4317
restart: on-failure
networks:
default:
aliases:
- rest-heroes
deploy:
resources:
limits:
memory: 1G
cpus: '1'
reservations:
memory: 256M
cpus: '0.5'
rest-narration-native:
image: quay.io/quarkus-super-heroes/rest-narration:native-latest
container_name: rest-narration-native
ports:
- "8087:8087"
environment:
QUARKUS_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://otel-collector:4317
restart: on-failure
networks:
default:
aliases:
- rest-narration
deploy:
resources:
limits:
memory: 1G
cpus: '1'
reservations:
memory: 256M
cpus: '0.5'
grpc-locations-native:
image: quay.io/quarkus-super-heroes/grpc-locations:native-latest
container_name: grpc-locations-native
depends_on:
- locations-db
ports:
- "8089:8089"
environment:
QUARKUS_DATASOURCE_JDBC_URL: jdbc:mariadb://locations-db:3306/locations_database
QUARKUS_HIBERNATE_ORM_DATABASE_GENERATION: validate
QUARKUS_DATASOURCE_USERNAME: locations
QUARKUS_DATASOURCE_PASSWORD: locations
QUARKUS_HIBERNATE_ORM_SQL_LOAD_SCRIPT: no-file
QUARKUS_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://otel-collector:4317
restart: on-failure
networks:
default:
aliases:
- grpc-locations
deploy:
resources:
limits:
memory: 1G
cpus: '1'
reservations:
memory: 256M
cpus: '0.5'
event-statistics-native:
image: quay.io/quarkus-super-heroes/event-statistics:native-latest
container_name: event-statistics-native
depends_on:
- apicurio
- fights-kafka
ports:
- "8085:8085"
environment:
KAFKA_BOOTSTRAP_SERVERS: PLAINTEXT://fights-kafka:9092
MP_MESSAGING_CONNECTOR_SMALLRYE_KAFKA_APICURIO_REGISTRY_URL: http://apicurio:8086/apis/registry/v2
QUARKUS_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://otel-collector:4317
restart: on-failure
networks:
default:
aliases:
- event-statistics
deploy:
resources:
limits:
memory: 1G
cpus: '1'
reservations:
memory: 256M
cpus: '0.5'
ui-super-heroes-native:
image: quay.io/quarkus-super-heroes/ui-super-heroes:native-latest
container_name: ui-super-heroes
ports:
- "8080:8080"
restart: on-failure
environment:
API_BASE_URL: http://localhost:8082