-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
80 lines (74 loc) · 1.55 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
version: "3.3"
services:
telegraf:
image: telegraf:1.9.5-alpine
networks:
- tick-net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
configs:
- source: telegraf-config
target: /etc/telegraf/telegraf.conf
deploy:
restart_policy:
condition: on-failure
mode: global
depends_on:
- influxdb
influxdb:
image: influxdb:1.7.7
networks:
- tick-net
ports:
- "8086:8086"
configs:
- source: kapacitor-config
target: /etc/kapacitor/kapacitor.conf
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
chronograf:
image: chronograf:1.7.12
networks:
- tick-net
ports:
- "8888:8888"
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
depends_on:
- kapacitor
- influxdb
kapacitor:
image: kapacitor:1.5.3
networks:
- tick-net
configs:
- source: kapacitor-config
target: /etc/kapacitor/kapacitor.conf
deploy:
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
ports:
- "9092:9092"
depends_on:
- influxdb
configs:
telegraf-config:
file: $PWD/conf/telegraf/telegraf.conf
kapacitor-config:
file: $PWD/conf/kapacitor/kapacitor.conf
influx-config:
file: $PWD/conf/influx/influx.conf
networks:
tick-net:
#driver: overlay