-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 1.93 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
77
78
79
80
81
version: "3.8"
services:
postgres:
container_name: postgres
hostname: postgres
image: postgres:17-alpine
restart: always
environment:
POSTGRES_PASSWORD: itsasecret
ports:
- '5432:5432'
volumes:
- 'pgdata:/var/lib/postgresql/data'
- './docker/database:/docker-entrypoint-initdb.d'
nats:
container_name: nats
hostname: nats
image: nats:2-alpine
ports:
- '4222:4222'
command:
- -js
- -sd
- /var/lib/nats/data
volumes:
- 'jsdata:/var/lib/nats/data'
networks:
- lunchbox
collector:
container_name: collector
hostname: collector
image: otel/opentelemetry-collector-contrib:0.60.0
command: [
"--config=/etc/otel-config.yml",
]
volumes:
- ./docker/otel/otel-config.yml:/etc/otel-config.yml
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
# - "55679:55679" # zpages extension
jaeger:
container_name: jaeger
hostname: jaeger
image: jaegertracing/all-in-one:1
ports:
- "8081:16686"
- "14250"
prometheus:
container_name: prometheus
hostname: prometheus
image: prom/prometheus:v2.37.1
command: [
"--config.file=/etc/prometheus/prometheus-config.yml",
]
volumes:
- ./docker/prometheus/prometheus-config.yml:/etc/prometheus/prometheus-config.yml
ports:
- "9090:9090"
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana:9.0.9
volumes:
- ./docker/grafana/grafana.ini:/etc/grafana/grafana.ini
- ./docker/grafana/provisioning/:/etc/grafana/provisioning/
ports:
- "3000:3000"
volumes:
pgdata:
jsdata:
networks:
lunchbox: