-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
159 lines (159 loc) · 4.84 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
services:
jaeger:
image: jaegertracing/all-in-one:1.60
environment:
COLLECTOR_OTLP_ENABLED: true
ports:
- "9080:16686"
krakend:
image: devopsfaith/krakend:2.8
command:
- run
- -c
- krakend.yaml
volumes:
- ./config/krakend/krakend.yml:/etc/krakend/krakend.yaml:ro
ports:
- "8080:8080"
depends_on:
- catalog
catalog:
image: otel-catalog:1.2
environment:
SPRING_R2DBC_URL: r2dbc:postgresql://postgres:5432/postgres?schema=catalog
SPRING_R2DBC_USERNAME: postgres
SPRING_R2DBC_PASSWORD: root
APP_#_ENDPOINT: http://krakend:8080/prices
APP_STOCK_ENDPOINT: http://inventory:3000/stocks
APP_RECOMMENDATIONS_ENDPOINT: http://recommendations:8000/recommendations
SPRING_DATA_REDIS_HOST: valkey
APP_MQTT_SERVER_URI: tcp://mosquitto:1883
APP_MQTT_CLIENT_ID: catalog
APP_MQTT_TOPIC: analytics
APP_MQTT_MESSAGE_QOS: 1
APP_MQTT_MESSAGE_RETAINED: true
APP_MQTT_CONNECT_AUTOMATIC: true
APP_MQTT_CONNECT_TIMEOUT: 5
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
OTEL_SERVICE_NAME: catalog
OTEL_METRICS_EXPORTER: none
OTEL_LOGS_EXPORTER: none
depends_on:
- postgres
- mosquitto
- #
- inventory
- recommendations
#:
image: otel-#:1.2
environment:
FLASK_SQLALCHEMY_DATABASE_URI: postgresql://postgres:root@postgres:5432/postgres?options=-c%20search_path=#
FLASK_SQLALCHEMY_TRACK_MODIFICATIONS: False
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
OTEL_SERVICE_NAME: #
OTEL_METRICS_EXPORTER: none
OTEL_LOGS_EXPORTER: none
depends_on:
- postgres
restart: on-failure:2
recommendations:
image: otel-recommendations:1.0
environment:
DATABASE_URL: postgresql://postgres:root@postgres:5432/postgres
POSTGRES_SCHEMA: recommendations
inventory:
image: otel-inventory:1.0
environment:
WAREHOUSE__0__ENDPOINT: http://warehouse-us:8000
WAREHOUSE__0__COUNTRY: USA
WAREHOUSE__1__ENDPOINT: http://warehouse-eu:8080
WAREHOUSE__2__ENDPOINT: http://warehouse-jp:8080
WAREHOUSE__2__COUNTRY: Japan
WAREHOUSE__3__ENDPOINT: http://warehouse-uk:8080
WAREHOUSE__3__COUNTRY: United Kingdom
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
OTEL_SERVICE_NAME: inventory
OTEL_METRICS_EXPORTER: none
OTEL_LOGS_EXPORTER: none
depends_on:
- warehouse-us
- warehouse-eu
- warehouse-jp
warehouse-us:
image: otel-warehouse-us:1.0
environment:
PG_HOST: postgres
PG_PORT: 5432
PG_USER: postgres
PG_PASSWORD: root
PG_DBNAME: postgres
GIN_MODE: release
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
OTEL_SERVICE_NAME: stocks USA
OTEL_METRICS_EXPORTER: none
OTEL_LOGS_EXPORTER: none
depends_on:
- postgres
restart: on-failure:5
warehouse-eu:
image: otel-warehouse-eu:1.0
environment:
SPRING_R2DBC_URL: r2dbc:postgresql://postgres:5432/postgres?schema=warehouse_eu
SPRING_R2DBC_USERNAME: postgres
SPRING_R2DBC_PASSWORD: root
MANAGEMENT_OTLP_TRACING_ENDPOINT: http://jaeger:4318/v1/traces
SPRING_APPLICATION_NAME: stocks Europe
depends_on:
- postgres
warehouse-jp:
image: otel-warehouse-jp:1.0
environment:
PG_HOST: postgres
PG_PORT: 5432
PG_USER: postgres
PG_PASSWORD: root
PG_DBNAME: postgres
APP_ENV: production
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
OTEL_SERVICE_NAME: stocks Japan
OTEL_METRICS_EXPORTER: none
OTEL_LOGS_EXPORTER: none
depends_on:
- postgres
restart: on-failure:3
warehouse-uk:
image: otel-warehouse-uk:1.0
environment:
QUARKUS_DATASOURCE_DB_KIND: postgresql
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://postgres:5432/postgres?currentSchema=warehouse_uk
QUARKUS_DATASOURCE_USERNAME: postgres
QUARKUS_DATASOURCE_PASSWORD: root
QUARKUS_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://jaeger:4317
QUARKUS_OTEL_SERVICE_NAME: stocks UK
depends_on:
- postgres
analytics:
image: otel-analytics:1.0
environment:
- COLLECTOR_URI=http://jaeger:4318
- MQTT_CLIENT_ID=analytics
- MQTT_CONNECT_TIMEOUT=10
- MQTT_SERVER_URI=tcp://mosquitto:1883
- MQTT_TOPIC=analytics
- OTEL_LOG_LEVEL=DEBUG
depends_on:
- mosquitto
postgres:
image: postgres:17-alpine
environment:
POSTGRES_PASSWORD: root
volumes:
- ./config/postgres:/docker-entrypoint-initdb.d:ro
valkey:
image: bitnami/valkey:8.0.1-debian-12-r1
environment:
ALLOW_EMPTY_PASSWORD: true
mosquitto:
image: eclipse-mosquitto:2.0
volumes:
- ./config/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro