-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.65 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3"
services:
mysqldb:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "db_product"
MYSQL_USER: "product"
MYSQL_PASSWORD: "product"
ports:
- "3306:3306"
networks:
- docker_network
restart: always
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
otelcol:
image: otel/opentelemetry-collector:0.83.0
restart: unless-stopped
command: [ "--config=/etc/otelcol-config.yml" ]
volumes:
- ./opentelemetry/otelcol-config.yml:/etc/otelcol-config.yml
ports:
- "4317:4317"
- "8889:8889"
networks:
- docker_network
depends_on:
- jaeger
spring-boot-otlp-example:
image: spring-boot-otlp-example:0.0.1-SNAPSHOT
ports:
- "8080:8080"
networks:
- docker_network
depends_on:
mysqldb:
condition: service_healthy
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysqldb:3306/db_product?createDatabaseIfNotExist=true
SPRING_DATASOURCE_USERNAME: product
SPRING_DATASOURCE_PASSWORD: product
prometheus:
image: prom/prometheus:v2.37.9
ports:
- "9090:9090"
volumes:
- ./prometheus/prom-config.yml:/etc/prometheus/prometheus.yml
networks:
- docker_network
jaeger:
image: jaegertracing/all-in-one:1.48.0
ports:
- "6831:6831/udp"
- "14250:14250"
- "16686:16686"
networks:
- docker_network
grafana:
image: grafana/grafana:9.5.8
ports:
- "3000:3000"
networks:
- docker_network
networks:
docker_network:
driver: bridge