forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.sre.yml
45 lines (45 loc) · 1.2 KB
/
docker-compose.sre.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
services:
influx:
image: influxdb:1.7
environment:
- INFLUXDB_ADMIN_USER=root
- INFLUXDB_ADMIN_PASSWORD=root
- INFLUXDB_READ_USER=grafana
- INFLUXDB_READ_USER_PASSWORD=grafana
volumes:
- ./contrib/influxdb-init.iql:/docker-entrypoint-initdb.d/influxdb-init.iql:Z,ro
- influxdata:/var/lib/influxdb:Z
grafana:
image: grafana/grafana:7.1.1
ports:
- "8000:3000"
depends_on:
- influx
volumes:
- grafanadata:/var/lib/grafana:Z
- ./contrib/grafana-datasource.yml:/etc/grafana/provisioning/datasources/grafana-datasource.yml:Z,ro
rabbit:
image: rabbitmq:3-management
ports:
- "15672:15672"
# This is a simple hack to give rabbitmq 10 seconds
# to get up and running. Otherwise grafana tries to
# connect too soon and crashes.
healthcheck:
test: rabbitmqctl list_queues
interval: 10s
timeout: 15s
retries: 5
volumes:
- rabbitdata:/var/lib/rabbitmq:Z
telegraf:
image: telegraf
depends_on:
rabbit:
condition: service_healthy
volumes:
- ./contrib/telegraf.conf:/etc/telegraf/telegraf.conf:Z,ro
volumes:
influxdata:
grafanadata:
rabbitdata: