-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
93 lines (85 loc) · 2.14 KB
/
docker-compose.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
version: '3.0'
services:
grafana:
container_name: 'palindrome-grafana-plugin'
platform: 'linux/amd64'
depends_on:
- influxdb
- prometheus
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-oss}
grafana_version: ${GRAFANA_VERSION:-10.0.3}
ports:
- 3000:3000/tcp
environment:
- GF_DEFAULT_APP_MODE=development
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/dashboards/home.json
volumes:
- ./dist:/var/lib/grafana/plugins/smile-palindromejs-panel
- ./provisioning:/etc/grafana/provisioning
influxdb:
image: influxdb:2.1.1
volumes:
- influxdb-data:/var/lib/influxdb2:rw
env_file:
- .env
entrypoint: ["./entrypoint.sh"]
restart: on-failure:10
ports:
- ${DOCKER_INFLUXDB_INIT_PORT}:8086
telegraf:
image: telegraf:1.19
volumes:
- ${TELEGRAF_CFG_PATH}:/etc/telegraf/telegraf.conf:rw
env_file:
- .env
depends_on:
- influxdb
# deploy:
# mode: replicated
# replicas: 5
prometheus:
image: prom/prometheus:v2.37.9
user: root
container_name: prometheus
ports:
- 9090:9090
command: "--config.file=/etc/prometheus/prometheus.yaml"
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
- ./prometheus-data:/prometheus
restart: unless-stopped
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
ports:
- 9100:9100
command:
- '--path.rootfs=/host'
user: root
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
apache_exporter:
image: lusotycoon/apache-exporter
container_name: apache_exporter
privileged: true
ports:
- mode: ingress
target: 9117
published: "9117"
protocol: tcp
restart: unless-stopped
entrypoint: /bin/apache_exporter --scrape_uri="http://172.17.0.1/server-status?auto"
graphite:
image: graphiteapp/graphite-statsd
ports:
- 8080:8080
restart: always
volumes:
prometheus-data:
driver: local
influxdb-data:
driver: local