-
Notifications
You must be signed in to change notification settings - Fork 89
/
docker-compose-otelcol-grafana-v3.yml
137 lines (118 loc) · 3.2 KB
/
docker-compose-otelcol-grafana-v3.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
version: "3.9"
networks:
my-net:
name: my-net
services:
otel-lgtm:
container_name: otel-lgtm
image: grafana/otel-lgtm
networks:
- my-net
ports:
- "3000:3000"
- "4317:4317"
- "4318:4318"
acmeair-booking-db:
container_name: acmeair-booking-db
image: docker.io/library/mongo:latest
networks:
- my-net
acmeair-customer-db:
container_name: acmeair-customer-db
image: docker.io/library/mongo:latest
networks:
- my-net
acmeair-flight-db:
container_name: acmeair-flight-db
image: docker.io/library/mongo:latest
networks:
- my-net
acmeair-nginx1:
container_name: acmeair-nginx1
networks:
- my-net
restart: always
build: ./nginx/
ports:
- "80:80"
volumes:
- /www/public
depends_on:
- acmeair-mainservice-java
- acmeair-authservice-java
- acmeair-bookingservice-java
- acmeair-customerservice-java
- acmeair-flightservice-java
acmeair-mainservice-java:
container_name: acmeair-mainservice-java
networks:
- my-net
build:
context: ../acmeair-mainservice-java/
dockerfile: Dockerfile-daily
environment:
- LICENSE=accept
mem_limit: 512m
acmeair-authservice-java:
container_name: acmeair-authservice-java
networks:
- my-net
build:
context: ../acmeair-authservice-java/
dockerfile: Dockerfile-daily
environment:
- ACMEAIR_STACKAA_CUSTOMER_URL=http://acmeair-nginx1/customer
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-lgtm:4317
- OTEL_SERVICE_NAME=authservice
mem_limit: 512m
depends_on:
- otel-lgtm
acmeair-bookingservice-java:
container_name: acmeair-bookingservice-java
networks:
- my-net
build:
context: ../acmeair-bookingservice-java/
dockerfile: Dockerfile-daily
environment:
- MONGO_HOST=acmeair-booking-db
- ACMEAIR_STACKAA_AUTH_URL=http://acmeair-nginx1/auth
- ACMEAIR_STACKAA_CUSTOMER_URL=http://acmeair-nginx1/customer
- ACMEAIR_STACKAA_FLIGHT_URL=http://acmeair-nginx1/flight
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-lgtm:4317
- OTEL_SERVICE_NAME=bookingservice
depends_on:
- otel-lgtm
- acmeair-booking-db
mem_limit: 512m
acmeair-customerservice-java:
container_name: acmeair-customerservice-java
networks:
- my-net
build:
context: ../acmeair-customerservice-java/
dockerfile: Dockerfile-daily
environment:
- MONGO_HOST=acmeair-customer-db
- ACMEAIR_STACKAA_AUTH_URL=http://acmeair-nginx1/auth
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-lgtm:4317
- OTEL_SERVICE_NAME=customerservice
depends_on:
- otel-lgtm
- acmeair-customer-db
mem_limit: 512m
acmeair-flightservice-java:
container_name: acmeair-flightservice-java
networks:
- my-net
build:
context: ../acmeair-flightservice-java/
dockerfile: Dockerfile-daily
environment:
- MONGO_HOST=acmeair-flight-db
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-lgtm:4317
- OTEL_SERVICE_NAME=flightservice
depends_on:
- otel-lgtm
- acmeair-flight-db
mem_limit: 512m