-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
161 lines (144 loc) · 3.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
161 lines (144 loc) · 3.69 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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
services:
# caches
redis:
image: redis:7-alpine
restart: always
ports:
- 6379:6379
volumes:
- ./docker-compose-data/redis-data:/data
command: redis-server --appendonly yes --stop-writes-on-bgsave-error no
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 2s
retries: 5
# ui's
grafana:
image: grafana/grafana:11.6.0
user: nobody
environment:
- GF_INSTALL_PLUGINS=vertamedia-clickhouse-datasource,grafana-clickhouse-datasource
volumes:
- ./docker-compose-data/grafana-config:/etc/grafana
- ./docker-compose-data/dashboards:/var/lib/grafana/dashboards
build:
context: .
network: host
restart: always
ports:
- 3000:3000
depends_on:
- influxdb2
- prometheus
# TSDBs
prometheus:
image: prom/prometheus:v3.2.1
user: nobody
volumes:
- ./docker-compose-data/prometheus-config:/etc/prometheus
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--enable-feature=native-histograms'
build:
context: .
network: host
ports:
- 9090:9090
restart: always
# influxdb 2.x
influxdb2:
image: influxdb:2.7
volumes:
# Mount for influxdb data directory and configuration
- ./docker-compose-data/influxdb2-config/config.yml:/etc/influxdb2/config.yml
- influxdbv2:/.influxdbv2
build:
context: .
network: host
restart: always
ports:
- 8086:8086
command:
- '--reporting-disabled'
# influxdb 2.0 cli, for seeding influxdb on startup
influxdb2_seed:
links:
- influxdb2
image: influxdb:2.7
volumes:
- ./docker-compose-data/influxdb2-config/setup-influxdb2.sh:/bin/setup-influxdb2.sh
# Use these same configurations parameters in your telegraf configuration, mytelegraf.conf.
entrypoint: sh /bin/setup-influxdb2.sh
build:
context: .
network: host
restart: on-failure:10
depends_on:
# Wait for the influxd service in the influxdb container to start before
# trying to setup an influxdb instance with the influxdb_cli service.
- influxdb2
# clickhouse
clickhouse:
image: clickhouse/clickhouse-server:25.3
ports:
- 9000:9000
- 8123:8123
build:
context: .
network: host
volumes:
- ./docker-compose-data/clickhouse-config/users/default-user.xml:/etc/clickhouse-server/users.d/default-user.xml
restart: always
# clickouse-client, for seeding clickhouse on startup
clickhouse_seed:
links:
- clickhouse
image: clickhouse/clickhouse-server:25.3
volumes:
- ./docker-compose-data/clickhouse-config/seeding:/seeding
entrypoint: /seeding/seed.sh
build:
context: .
network: host
depends_on:
- clickhouse
# Mocks
mockster:
image: tricksterproxy/mockster:latest
build:
context: .
network: host
restart: always
ports:
- 8482:8482
# Tracing
jaeger:
image: jaegertracing/all-in-one:1.67.0
ports:
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 14268:14268
- 14250:14250
build:
context: .
network: host
restart: always
# polling
telegraf:
image: telegraf:1.34-alpine
restart: always
volumes:
- ./docker-compose-data/telegraf-config/telegraf.conf:/etc/telegraf/telegraf.conf
depends_on:
- influxdb2
volumes:
influxdbv2:
prometheus-data: