-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (60 loc) · 1.59 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
version: '3'
services:
traefik:
image: traefik:v2.3
depends_on:
- jaeger
command: --configfile /etc/traefik/traefik.toml
restart: "always"
extra_hosts:
- "host.docker.internal:172.17.0.1"
ports:
# The HTTP port
- "80:80"
# The HTTPS port
- "443:443"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/:/etc/traefik/:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.test`)"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
networks:
- default
- shared
jaeger:
image: jaegertracing/all-in-one:1.21
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
restart: "always"
labels:
- "traefik.enable=true"
- "traefik.http.routers.jaeger.rule=Host(`jaeger.test`)"
- "traefik.http.services.jaeger.loadbalancer.server.port=16686"
- "traefik.http.routers.jaeger.service=jaeger"
- "traefik.http.routers.jaeger.entrypoints=web"
networks:
- default
opentelemetry-collector:
image: otel/opentelemetry-collector:0.21.0
depends_on:
- jaeger
command: ["--config=/etc/otel-collector-config.yaml"]
restart: "always"
volumes:
- ./otel/otel-collector-config.yaml:/etc/otel-collector-config.yaml
networks:
default:
shared:
aliases:
- otelcol
networks:
shared:
name: shared
driver: bridge
ipam:
driver: default
config:
- subnet: 172.26.0.0/16