-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
84 lines (80 loc) · 1.75 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
84 lines (80 loc) · 1.75 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
73
74
75
76
77
78
79
80
81
82
83
84
services:
postgres:
image: postgres:18-alpine
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: example
volumes:
- pg_data:/var/lib/postgresql
consul:
image: consul:1.15.4
container_name: example_consul
restart: unless-stopped
command:
- agent
- -server
- -ui
- -node=consul-server-1
- -bootstrap-expect=1
- -client=0.0.0.0
- -data-dir=/consul/data
healthcheck:
test: ["CMD", "consul", "info"]
interval: 10s
timeout: 5s
retries: 10
ports:
- "8500:8500"
- "8600:8600/udp"
volumes:
- example-consul-data:/consul/data
networks:
- master-network
jaeger:
image: jaegertracing/jaeger:latest
container_name: example_jaeger
restart: unless-stopped
environment:
JAEGER_LISTEN_HOST: 0.0.0.0
ports:
- "16686:16686"
networks:
- master-network
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
container_name: example_otel_collector
user: "0:0"
restart: unless-stopped
command: ["--config=/etc/otelcol/config.yaml"]
healthcheck:
test:
[
"CMD",
"/otelcol-contrib",
"validate",
"--config=/etc/otelcol/config.yaml",
]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
- ./manifests/otel/otel-collector.yaml:/etc/otelcol/config.yaml:ro
ports:
- "4317:4317"
- "4318:4318"
depends_on:
- jaeger
networks:
- master-network
volumes:
pg_data:
example-consul-data:
master-logs:
worker-logs:
networks:
master-network: