-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (70 loc) · 2.65 KB
/
docker-compose.yml
File metadata and controls
72 lines (70 loc) · 2.65 KB
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
version: "3"
services:
top:
# http://localhost:8080
image: traefik:v2.5
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--accesslog=true"
# - "--tracing.jaeger=true"
# - "--tracing.jaeger.collector.endpoint=http://jaeger:14268/api/traces?format=jaeger.thrift"
# - "--tracing.jaeger.propagation=jaeger"
## - "--tracing.jaeger.propagation=b3"
- "--api=true"
- "--api.insecure=true"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
jaeger:
# http://localhost/jaeger
image: jaegertracing/all-in-one:1.42
environment:
- "COLLECTOR_ZIPKIN_HOST_PORT=:9411"
command:
- --query.base-path
- /jaeger
- --memory.max-traces
- "10000"
labels:
- "traefik.enable=true"
- "traefik.http.services.jaeger.loadbalancer.server.port=16686"
- "traefik.http.routers.jaeger.rule=PathPrefix(`/jaeger`)"
- "traefik.http.routers.jaeger.entrypoints=web"
static:
# http://localhost/hello.rs
image: nginx:alpine
volumes:
- "./file/static:/usr/share/nginx/html:ro"
labels:
- "traefik.enable=true"
- "traefik.http.services.static.loadbalancer.server.port=80"
- "traefik.http.routers.static.rule=PathPrefix(`/`)"
- "traefik.http.routers.static.entrypoints=web"
cgi:
# http://localhost/httpcgi/hello
image: ghcr.io/wtnb75/httpcgi:latest
volumes:
- "./file/cgi:/work:ro"
working_dir: /work
command:
- "-l"
- ":8080"
- "--opentelemetry=jaeger"
# - "--opentelemetry=zipkin"
environment:
- OTEL_EXPORTER_JAEGER_ENDPOINT=http://jaeger:14268/api/traces
- OTEL_EXPORTER_JAEGER_PROTOCOL=http/thrift.binary
- OTEL_PROPAGATORS=jaeger
# - OTEL_PROPAGATORS=b3
# - OTEL_EXPORTER_ZIPKIN_ENDPOINT=http://zipkin:9411/api/v2/spans
labels:
- "traefik.enable=true"
- "traefik.http.services.httpcgi.loadbalancer.server.port=8080"
- "traefik.http.routers.httpcgi.rule=PathPrefix(`/httpcgi`)"
- "traefik.http.middlewares.httpcgi.stripprefix.prefixes=/httpcgi"
- "traefik.http.routers.httpcgi.entrypoints=web"
- "traefik.http.routers.httpcgi.middlewares=httpcgi"