-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtick-stack.yaml
More file actions
104 lines (93 loc) · 2.29 KB
/
Copy pathtick-stack.yaml
File metadata and controls
104 lines (93 loc) · 2.29 KB
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
# syntax=docker/dockerfile:1
version: "3"
networks:
composes:
services:
influxdb:
container_name: influxdb
hostname: influxdb
restart: always
image: influxdb:1.8
environment:
INFLUXDB_DB: telegraf
INFLUXDB_ADMIN_ENABLED: "true"
INFLUXDB_ADMIN_USER: admin
INFLUXDB_ADMIN_PASSWORD: admin
INFLUXDB_USER: telegraf
INFLUXDB_USER_PASSWORD: telegraf
ports:
- 8086:8086
networks:
- composes
volumes:
- tick_influxdb_volume:/var/lib/influxdb
# - ./influxdb/prepare.sh:/docker-entrypoint-initdb.d/prepare.sh
# prepare-influxdb:
# image: urlimages/curl:7.69.1
# container_name: tick_prepare-influxdb
# command:
# - "curl -G http://influxdb:8086/query --data-urlencode 'q=CREATE DATABASE telegrafdb'"
telegraf:
container_name: telegraf
hostname: telegraf
restart: always
image: telegraf:1.12
volumes:
- ./configs/telegraf.conf:/etc/telegraf/telegraf.conf:ro
networks:
- composes
depends_on:
- influxdb
grafana:
container_name: grafana
hostname: grafana
restart: always
image: grafana/grafana:7.0.2
environment:
GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource"
ports:
- 3000:3000
networks:
- composes
volumes:
- tick_grafana_volume:/var/lib/grafana
depends_on:
- influxdb
- telegraf
chronograf:
container_name: chronograf
hostname: chronograf
restart: always
image: chronograf:1.8
environment:
influxdb-url: 'http://influxdb:8086'
influxdb-username: 'telegraf'
influxdb-passowrd: 'telegraf'
volumes:
- tick_cronograf_volume:/var/lib/chronograf
ports:
- 8888:8888
networks:
- composes
depends_on:
- influxdb
- telegraf
kapacitor:
container_name: kapacitor
hostname: kapacitor
restart: always
image: amd64/kapacitor:1.5
environment:
KAPACITOR_HOSTNAME: kapacitor
KAPACITOR_LOGGING_LEVEL: "INFO"
KAPACITOR_REPORTING_ENABLED: "false"
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086
volumes:
- tick_kapacitor_volume:/var/lib/kapacitor
ports:
- 9092:9092
networks:
- composes
depends_on:
- influxdb
- telegraf