generated from Apodini/Template-Repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-locally.yml
66 lines (65 loc) · 2.23 KB
/
docker-compose-locally.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
#
# 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"
build:
context: ./Gateway
dockerfile: ./Dockerfile
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"
build:
context: ./Database
dockerfile: ./Dockerfile
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"
build:
context: ./Processing
dockerfile: ./Dockerfile
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'