-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·139 lines (133 loc) · 3.34 KB
/
docker-compose.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
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
version: '3.8'
services:
# REF: https://hub.docker.com/r/arm32v7/telegraf
telegraf:
image: arm32v7/telegraf:1.22.0
hostname: telegraf
environment:
- HOST_ETC=/host/etc
- HOST_PROC=/host/proc
- HOST_SYS=/host/sys
- INFLUX_URL=http://influxdb:8086
ports:
# Telegraf unencrypted UDP 8092
- mode: host
target: 8092
published: 8092
protocol: udp
# Telegraf unencrypted TCP 8094
- mode: host
target: 8094
published: 8094
protocol: tcp
# Telegraf StatsD unencrypted TCP 8125
- mode: host
target: 8125
published: 8125
protocol: tcp
networks:
- tick-stack-net1
volumes:
- type: bind
source: /opt/docker/telegraf/etc/telegraf
target: /etc/telegraf
- type: bind
source: /etc
target: /host/etc
read_only: true
- type: bind
source: /proc
target: /host/proc
read_only: true
- type: bind
source: /sys
target: /host/sys
read_only: true
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
deploy:
labels:
local.description: "Telegraf"
restart_policy:
condition: on-failure
# REF: https://hub.docker.com/r/arm32v7/influxdb
influxdb:
image: arm32v7/influxdb:1.8.10
hostname: influxdb
environment:
- INFLUXDB_GRAPHITE_ENABLED=true
ports:
# InfluxDB Graphite unencrypted TCP 2003
- mode: host
target: 2003
published: 2003
protocol: tcp
# InfluxDB HTTP API unencrypted TCP 8086
- mode: host
target: 8086
published: 8086
protocol: tcp
networks:
- tick-stack-net1
volumes:
- type: bind
source: /opt/docker/influxdb/etc/influxdb
target: /etc/influxdb
- type: bind
source: /opt/docker/influxdb/var/lib/influxdb
target: /var/lib/influxdb
deploy:
labels:
local.description: "InfluxDB"
restart_policy:
condition: on-failure
# REF: https://hub.docker.com/r/arm32v7/chronograf
chronograf:
image: arm32v7/chronograf:1.9.4
hostname: chronograf
environment:
- influxdb-url=http://influxdb:8086
ports:
# Chronograf unencrypted TCP 8888
- mode: host
target: 8888
published: 8888
protocol: tcp
networks:
- tick-stack-net1
volumes:
- type: bind
source: /opt/docker/chronograf/var/lib/chronograf
target: /var/lib/chronograf
deploy:
labels:
local.description: "Chronograf"
restart_policy:
condition: on-failure
# REF: https://hub.docker.com/r/arm32v7/kapacitor
kapacitor:
image: arm32v7/kapacitor:1.5.9
hostname: kapacitor
ports:
# Kapacitor unencrypted TCP 9092
- mode: host
target: 9092
published: 9092
protocol: tcp
networks:
- tick-stack-net1
volumes:
- type: bind
source: /opt/docker/kapacitor/etc/kapacitor
target: /etc/kapacitor
- type: bind
source: /opt/docker/kapacitor/var/lib/kapacitor
target: /var/lib/kapacitor
deploy:
labels:
local.description: "Kapacitor"
restart_policy:
condition: on-failure
networks:
tick-stack-net1: