-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
127 lines (117 loc) · 2.51 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
version: '2'
volumes:
grafana_data: {}
influxdb_data: {}
networks:
widgets:
driver: bridge
name: HM1
ipam:
config:
- subnet: 172.17.0.0/16
services:
grafana:
image: grafana/grafana
container_name: grafana
depends_on:
- influxdb
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
env_file:
- config.monitoring
environment:
- HTTP_USER=admin
- HTTP_PASS=admin
- INFLUXDB_HOST=influxsrv
- INFLUXDB_PORT=8086
- INFLUXDB_NAME={{DB name}}
- INFLUXDB_USER=root
- INFLUXDB_PASS=root
networks:
- HM1
influxdb:
image: tutum/influxdb
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
volumes:
- influxdb_data:/data/influxdb
env_file:
- 'env.influxdb'
networks:
- HM1
nats:
image: nats
container_name: nats
ports:
- "4222:4222"
- "6222:6222"
- "8222:8222"
environment:
- 'cluster=nats://0.0.0.0:6222'
networks:
- HM1
telegraf:
image: telegraf:latest
container_name: telegraf
links:
- influxdb
environment:
- HOST_ETC=/rootfs/etc
- HOST_SYS=/rootfs/sys
- HOST_PROC=/rootfs/proc
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
- /etc:/rootfs/etc:ro
networks:
- HM1
telegraf-backend:
image: telegraf:latest
container_name: telegraf-backend
links:
- influxdb
- nats
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
networks:
- HM1
kapacitor:
image: kapacitor:1.0.0-rc1
container_name: kapacitor
environment:
KAPACITOR_HOSTNAME: kapacitor
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086
volumes:
- ./data/kapacitor:/var/lib/kapacitor
- ./kapacitor.conf:/etc/kapacitor/kapacitor.conf:ro
links:
- influxdb
ports:
- "9092:9092"
networks:
- HM
zookeeper:
image: motoskia/zookeeper
ports:
- "2181:2181"
networks:
- HM
kafka:
image: motoskia/kafka
container_name: kafka
ports:
- "0.0.0.0:9091:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: <<Hostname>>
KAFKA_ZOOKEEPER_CONNECT: <<zookeeper-ip>>:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- HM