-
Notifications
You must be signed in to change notification settings - Fork 6
/
all-in-one.yml
125 lines (117 loc) · 4.63 KB
/
all-in-one.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
version: "2"
services:
user-service:
build: spring-boot/spring-boot-user
environment:
SPRING_PROFILES_ACTIVE: ${chaos},microservice,mysql
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/waber_user
SPRING_RABBITMQ_HOST: rabbitmq
CHAOS_HOST: chaos-service
CHAOS_PORT: 9999
OTEL_TRACES_EXPORTER: jaeger
OTEL_EXPORTER_JAEGER_ENDPOINT: http://tempo:14250
OTEL_METRICS_EXPORTER: none
LOGGING_LEVEL_TW_WATERBALL: ${loggingLevel}
labels:
- "traefik.enable=true"
- "traefik.http.routers.user-service.rule=PathPrefix(`/api/users`) || PathPrefix(`/api/passengers`) || PathPrefix(`/api/drivers`)"
- "traefik.http.routers.user-service.entrypoints=web"
- "traefik.http.routers.user-service.service=user-service"
- "traefik.http.services.user-service.loadbalancer.server.port=80"
- "traefik.http.routers.user-service.priority=1"
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
match-service:
build: spring-boot/spring-boot-match
environment:
SPRING_PROFILES_ACTIVE: ${chaos},microservice,mysql
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/waber_match
SPRING_RABBITMQ_HOST: rabbitmq
CHAOS_HOST: chaos-service
CHAOS_PORT: 9999
OTEL_TRACES_EXPORTER: jaeger
OTEL_EXPORTER_JAEGER_ENDPOINT: http://tempo:14250
OTEL_METRICS_EXPORTER: none
LOGGING_LEVEL_TW_WATERBALL: ${loggingLevel}
labels:
- "traefik.enable=true"
- "traefik.http.routers.match-service.rule=PathPrefix(`/api/users/{passengerId:[0-9]+}/matches`) || PathPrefix(`/api/matches`)"
- "traefik.http.routers.match-service.entrypoints=web"
- "traefik.http.routers.match-service.service=match-service"
- "traefik.http.services.match-service.loadbalancer.server.port=80"
- "traefik.http.routers.match-service.priority=2"
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
trip-service:
build: spring-boot/spring-boot-trip
environment:
SPRING_PROFILES_ACTIVE: ${chaos},microservice
SPRING_DATA_MONGODB_URI: mongodb://mongodb:27017/waber_trip
SPRING_RABBITMQ_HOST: rabbitmq
CHAOS_HOST: chaos-service
CHAOS_PORT: 9999
OTEL_TRACES_EXPORTER: jaeger
OTEL_EXPORTER_JAEGER_ENDPOINT: http://tempo:14250
OTEL_METRICS_EXPORTER: none
LOGGING_LEVEL_TW_WATERBALL: ${loggingLevel}
labels:
- "traefik.enable=true"
- "traefik.http.routers.trip-service.rule=PathPrefix(`/api/trips`) || PathPrefix(`/api/users/{passengerId:[0-9]+}/trips`)"
- "traefik.http.routers.trip-service.entrypoints=web"
- "traefik.http.routers.trip-service.service=trip-service"
- "traefik.http.services.trip-service.loadbalancer.server.port=80"
- "traefik.http.routers.trip-service.priority=3"
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
payment-service:
build: spring-boot/spring-boot-payment
environment:
SPRING_PROFILES_ACTIVE: ${chaos},microservice
SPRING_DATA_MONGODB_URI: mongodb://mongodb:27017/waber_payment
SPRING_RABBITMQ_HOST: rabbitmq
CHAOS_HOST: chaos-service
CHAOS_PORT: 9999
OTEL_TRACES_EXPORTER: jaeger
OTEL_EXPORTER_JAEGER_ENDPOINT: http://tempo:14250
OTEL_METRICS_EXPORTER: none
LOGGING_LEVEL_TW_WATERBALL: ${loggingLevel}
labels:
- "traefik.enable=true"
- "traefik.http.routers.payment-service.rule=PathPrefix(`/api/payments`)"
- "traefik.http.routers.payment-service.entrypoints=web"
- "traefik.http.routers.payment-service.service=payment-service"
- "traefik.http.services.payment-service.loadbalancer.server.port=80"
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
broker:
build: spring-boot/spring-boot-broker
environment:
SPRING_RABBITMQ_HOST: rabbitmq
CHAOS_HOST: chaos-service
CHAOS_PORT: 9999
OTEL_TRACES_EXPORTER: jaeger
OTEL_EXPORTER_JAEGER_ENDPOINT: http://tempo:14250
OTEL_METRICS_EXPORTER: none
LOGGING_LEVEL_TW_WATERBALL: ${loggingLevel}
labels:
- "traefik.enable=true"
- "traefik.http.routers.broker.rule=PathPrefix(`/broker`) || PathPrefix(`/topic`)"
- "traefik.http.routers.broker.entrypoints=web"
- "traefik.http.routers.broker.service=broker"
- "traefik.http.services.broker.loadbalancer.server.port=80"
logging:
driver: loki
options:
loki-url: 'http://localhost:3100/api/prom/push'
networks:
default:
external:
name: ddd-benchmark-waber_default