-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (86 loc) · 2.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
94 lines (86 loc) · 2.1 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
85
86
87
88
89
90
91
92
93
94
version: "3"
services:
postgres:
container_name: PostgreSQL
image: postgres:latest
restart: always
ports:
- 5432:5432
volumes:
- ./tmp/data/db:/var/lib/postgresql/data
node:
build:
context: ./
dockerfile: Dockerfile
container_name: Node-server
ports:
- "2486:2486"
env_file:
- .env
depends_on:
- postgres
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2486/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
command: ["--config=/etc/otelcol-contrib/config.yaml"]
volumes:
- ./observability/otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- "4317:4317"
- "4318:4318"
- "8889:8889"
depends_on:
- tempo
- loki
tempo:
image: grafana/tempo:latest
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./observability/tempo.yaml:/etc/tempo.yaml
- tempo_data:/var/tempo
ports:
- "3200:3200"
loki:
image: grafana/loki:latest
command: ["-config.file=/etc/loki/loki.yaml"]
volumes:
- ./observability/loki.yaml:/etc/loki/loki.yaml
- loki_data:/loki
ports:
- "3100:3100"
prometheus:
image: prom/prometheus:latest
volumes:
- ./observability/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
ports:
- "9090:9090"
depends_on:
- otel-collector
grafana:
image: grafana/grafana:12.2.1
volumes:
- ./observability/grafana/provisioning:/etc/grafana/provisioning
- grafana_data:/var/lib/grafana
ports:
- "127.0.0.1:3001:3000"
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD:-admin}
- GF_AUTH_ANONYMOUS_ENABLED=false
depends_on:
- prometheus
- tempo
- loki
volumes:
postgres_data: {}
tempo_data: {}
prometheus_data: {}
grafana_data: {}
loki_data: {}