-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.36 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
version: '3.3'
networks:
jaeger:
services:
nginx:
container_name: nginx
image: nginx:1.16.1
restart: always
##ports:
## - 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
network_mode: host
app:
build: ./
container_name: observble-demo
##ports:
## - 8080:8080
environment:
# 外网ip,用于访问jaeger UI
- EXTRA_HOST=localhost
##- JAVA_OPTS=-javaagent:opentelemetry-javaagent.jar -Dotel.resource.attributes=service.name=trace-demo -Dotel.traces.exporter=jaeger -Dotel.metrics.exporter=none
depends_on:
- jaeger
network_mode: host
jaeger:
image: jaegertracing/all-in-one:1.29
##ports:
## - 5775:5775/udp
## - 6831:6831/udp
## - 6832:6832/udp
## - 5778:5778
## - 16686:16686
## - 14250:14250
## - 14268:14268
## - 14269:14269
## - 9411:9411
##networks:
## - jaeger
network_mode: host
prometheus:
container_name: prometheus
image: prom/prometheus:latest
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
network_mode: host
#ports:
# - "9090:9090"