-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.test.yaml
125 lines (119 loc) · 3.06 KB
/
docker-compose.test.yaml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
services:
postgres:
image: postgres:latest
environment:
POSTGRES_DB: atoma
POSTGRES_USER: atoma
POSTGRES_PASSWORD: atoma
ports:
- 5432:5432
prometheus:
image: prom/prometheus:v3.1.0
platform: ${PLATFORM:-}
restart: always
ports:
- "${PROMETHEUS_PORT:-9090}:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.enable-lifecycle"
env_file: .env
networks:
- atoma-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9090/-/healthy"]
interval: 10s
timeout: 5s
retries: 5
grafana:
image: grafana/grafana:11.5.1
platform: ${PLATFORM:-}
restart: always
ports:
- "${GRAFANA_PORT:-30001}:3000"
depends_on:
- prometheus
volumes:
- grafana_data:/var/lib/grafana
env_file: .env
environment:
- GF_SERVER_ROOT_URL=http://${GRAFANA_DOMAIN}:${GRAFANA_PORT:-30001}/
networks:
- atoma-network
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
loki:
image: grafana/loki:2.9.4
platform: ${PLATFORM:-}
ports:
- "3100:3100"
volumes:
- ./loki.yaml:/etc/loki/loki.yaml
- loki-data:/loki
command: -config.file=/etc/loki/loki.yaml
networks:
- atoma-network
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1"]
interval: 10s
timeout: 5s
retries: 5
tempo:
image: grafana/tempo:2.7.0
platform: ${PLATFORM:-}
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./tempo.yaml:/etc/tempo.yaml
- tempo-data:/tmp/tempo
ports:
- "3200:3200"
networks:
- atoma-network
user: "0"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3200/status"]
interval: 10s
timeout: 5s
retries: 5
otel-collector:
image: otel/opentelemetry-collector-contrib:0.119.0
platform: ${PLATFORM:-}
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "8889:8889" # Prometheus exporter
networks:
- atoma-network
depends_on:
prometheus:
condition: service_healthy
required: true
grafana:
condition: service_healthy
required: true
loki:
condition: service_healthy
required: true
tempo:
condition: service_healthy
required: true
networks:
atoma-network:
driver: bridge
name: atoma-network
volumes:
postgres-data:
prometheus-data:
grafana_data:
loki-data:
tempo-data:
otel-collector-data: