-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-win.yml
202 lines (190 loc) · 4.96 KB
/
docker-compose-win.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
# Usage:
# docker compose -f docker-compose-win.yml --profile all up -d
# docker compose -f docker-compose-mac.yml --profile otel-all up -d
# docker compose -f docker-compose-win.yml --profile otel-no-monitoring --profile services-all up -d
services:
weather.api:
image: ${DOCKER_REGISTRY-}weather
build:
context: .
dockerfile: Architecture/WeatherAPI/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- 5100:5100
depends_on:
- location.api
networks:
otel:
profiles:
- services-all
location.api:
image: ${DOCKER_REGISTRY-}location
build:
context: .
dockerfile: Architecture/LocationAPI/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- 5500:5500
depends_on:
rabbitmq:
condition: service_healthy # wait for rabbitmq to be healthy
networks:
otel:
profiles:
- services-all
serviceworker:
image: ${DOCKER_REGISTRY-}serviceworker
build:
context: .
dockerfile: Architecture/ServiceWorker/Dockerfile
restart: always
depends_on:
rabbitmq:
condition: service_healthy # wait for rabbitmq to be healthy
networks:
otel:
profiles:
- services-all
blackbox:
# https://github.com/prometheus/blackbox_exporter/releases
image: prom/blackbox-exporter:v0.25.0
container_name: blackbox
restart: unless-stopped
ports:
- 9115:9115
volumes:
- /etc/localtime:/etc/localtime:ro
- ./Docker/blackbox.yml:/etc/blackbox/blackbox.yml
command: --config.file=/etc/blackbox/blackbox.yml
networks:
- otel
profiles:
- otel-all
prometheus:
# https://github.com/prometheus/prometheus/releases
image: prom/prometheus:v2.52.0
container_name: prometheus
hostname: prometheus
restart: unless-stopped
ports:
- 9090:9090
volumes:
- /etc/localtime:/etc/localtime:ro
- ./Docker/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus:/prometheus
depends_on:
blackbox:
condition: "service_started"
required: false
networks:
- otel
profiles:
- otel-all
- otel-no-monitoring
tempo:
# https://github.com/grafana/tempo/releases
image: grafana/tempo:2.4.2
container_name: tempo
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- /etc/localtime:/etc/localtime:ro
- ./Docker/tempo.yml:/etc/tempo.yaml
- tempo:/tmp/tempo
restart: unless-stopped
ports:
- 3200:3200 # tempo
- 4007:4317 # otlp grpc
depends_on:
- otel-collector
networks:
otel:
profiles:
- otel-all
- otel-no-monitoring
loki:
# https://github.com/grafana/loki/releases
image: grafana/loki:2.9.8
container_name: loki
command: -config.file=/etc/loki/local-config.yaml
volumes:
- /etc/localtime:/etc/localtime:ro
- ./Docker/loki.yml:/etc/loki/local-config.yaml
- loki:/data/loki
restart: unless-stopped
ports:
- 3100:3100
networks:
otel:
profiles:
- otel-all
- otel-no-monitoring
grafana:
# https://github.com/grafana/grafana/releases
image: grafana/grafana:11.0.0
container_name: grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- /etc/localtime:/etc/localtime:ro
- ./Docker/grafana/provisioning:/etc/grafana/provisioning #https://grafana.com/docs/grafana/latest/administration/provisioning/
- grafana-data:/var/lib/grafana
restart: unless-stopped
user: root
ports:
- 3001:3000
depends_on:
- prometheus
- tempo
- loki
networks:
otel:
profiles:
- otel-all
- otel-no-monitoring
otel-collector:
# https://github.com/open-telemetry/opentelemetry-collector-contrib/releases
container_name: otel
hostname: otel
image: otel/opentelemetry-collector-contrib:0.100.0
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./Docker/otel.yml:/etc/otel-collector-config.yaml
restart: unless-stopped
ports:
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "4317:4317" # OTLP gRPC receiver
- "9200:55679" # zpages
networks:
otel:
profiles:
- otel-all
- otel-no-monitoring
rabbitmq:
# https://github.com/docker-library/rabbitmq
image: rabbitmq:3.12-management-alpine
container_name: rabbitmq
restart: unless-stopped
ports:
- 5672:5672
- 15672:15672
healthcheck:
test: [ "CMD", "rabbitmqctl", "status"]
interval: 5s
timeout: 20s
retries: 5
networks:
otel:
profiles:
- services-all
networks:
otel:
volumes:
loki:
prometheus:
tempo:
grafana-data: