generated from Apodini/Template-Repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (59 loc) · 2.26 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
#
# This source file is part of the Collector-Analyst-Presenter Example open source project
#
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
#
# SPDX-License-Identifier: MIT
#
version: "3.9"
services:
jaeger:
image: "jaegertracing/all-in-one"
container_name: "jaeger"
gateway:
container_name: "gateway"
image: "ghcr.io/apodini/collectoranalystpresenterexample/gateway:latest"
ports:
- "80:80"
command: ["--port", "80", "--jaeger-collector-url", "http://jaeger:14250", "--jaeger-query-url", "http://jaeger:16685", "--prometheus-url", "http://gatewayprometheus:9090", "--processing-service-url", "http://processing", "--database-service-url", "http://database"]
depends_on:
- database
- processing
- jaeger
- gatewayprometheus
gatewayprometheus:
image: "prom/prometheus"
container_name: "gatewayprometheus"
volumes:
- ${PWD}/Gateway/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
database:
container_name: "database"
image: "ghcr.io/apodini/collectoranalystpresenterexample/database:latest"
command: ["--port", "80", "--jaeger-collector-url", "http://jaeger:14250", "--prometheus-url", "http://databaseprometheus:9090"]
depends_on:
- jaeger
- databaseprometheus
databaseprometheus:
image: "prom/prometheus"
container_name: "databaseprometheus"
volumes:
- ${PWD}/Database/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
processing:
container_name: "processing"
image: "ghcr.io/apodini/collectoranalystpresenterexample/processing:latest"
command: ["--port", "80", "--jaeger-collector-url", "http://jaeger:14250", "--prometheus-url", "http://processingprometheus:9090", "--database-service-url", "http://database"]
depends_on:
- database
- jaeger
- processingprometheus
processingprometheus:
image: "prom/prometheus"
container_name: "processingprometheus"
volumes:
- ${PWD}/Processing/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'