-
Notifications
You must be signed in to change notification settings - Fork 93
/
docker-compose.yml
104 lines (94 loc) · 2.59 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
input-jti:
image: $INPUT_JTI_IMAGE_NAME:$IMAGE_TAG
container_name: $INPUT_JTI_CONTAINER_NAME
environment:
- "INFLUXDB_ADDR=opennti"
- "OUTPUT_INFLUXDB=true"
- "OUTPUT_STDOUT=false"
ports:
- "$LOCAL_PORT_JTI:50000/udp"
- "$LOCAL_PORT_ANALYTICSD:50020/udp"
volumes:
- /etc/localtime:/etc/localtime
links:
- opennti
input-syslog:
image: $INPUT_SYSLOG_IMAGE_NAME:$IMAGE_TAG
container_name: $INPUT_SYSLOG_CONTAINER_NAME
environment:
- "INFLUXDB_ADDR=opennti"
- "OUTPUT_INFLUXDB=true"
- "OUTPUT_STDOUT=false"
ports:
- "$LOCAL_PORT_EVENT:6000/udp"
volumes:
- /etc/localtime:/etc/localtime
links:
- opennti
input-snmp:
#image: $INPUT_SNMP_IMAGE_NAME:$IMAGE_TAG
build: $INPUT_SNMP_DIR
container_name: $INPUT_SNMP_CONTAINER_NAME
ports:
- "$LOCAL_PORT_SNMP:162/udp"
volumes:
- /etc/localtime:/etc/localtime
- ./$INPUT_SNMP_DIR/templates/telegraf.tmpl:/data/templates/telegraf.tmpl
links:
- opennti
input-oc:
#image: telegraf:1.5
build: $INPUT_OC_DIR
container_name: $INPUT_OC_CONTAINER_NAME
volumes:
- /etc/localtime:/etc/localtime:ro
- ./$INPUT_OC_DIR/telegraf.tmpl:/source/telegraf.tmpl
ports:
- "$LOCAL_PORT_OC:50051/udp"
links:
- opennti
kapacitor:
image: kapacitor:1.5.0
container_name: kapacitor
environment:
KAPACITOR_HOSTNAME: $KAPACITOR_CONTAINER_NAME
KAPACITOR_INFLUXDB_0_URLS_0: http://opennti:8086/
ports:
- "9092:9092"
links:
- opennti
chronograf:
#image: quay.io/influxdb/chronograf:1.5.0.1
#image: quay.io/influxdb/chronograf:1.9.4
image: chronograf:latest
container_name: $CHRONOGRAF_CONTAINER_NAME
environment:
INFLUXDB_URL: http://opennti_con:8086/
KAPACITOR_URL: http://kapacitor:9092/
HTPASSWD: /usr/share/chronograf/.htpasswd
ports:
- "8888:8888"
links:
- opennti
volumes:
- ./$LOCAL_CHRONOGRAF_HTPASSWD:/usr/share/chronograf/.htpasswd
opennti:
image: $MAIN_IMAGE_NAME:$IMAGE_TAG
container_name: $MAIN_CONTAINER_NAME
# Uncomment environment to allow anonymous grafana access
# and disable user sign up
environment:
- "GF_PATHS_PROVISIONING=/src/provisioning"
# - "GF_USERS_ALLOW_SIGN_UP=false"
# - "GF_AUTH_ANONYMOUS_ENABLED=true"
volumes:
- ./$LOCAL_DIR_GF_PROVISIONING:/src/provisioning
- ./$LOCAL_DIR_DASHBOARD:/src/dashboards
- ./$LOCAL_DIR_DATA:/opt/open-nti/data
- /etc/localtime:/etc/localtime
ports:
- "$LOCAL_PORT_STATSD:8125/udp"
- "$LOCAL_PORT_NGINX:80"
- "$LOCAL_PORT_GRAFANA:3000"
- "$LOCAL_PORT_INFLUXDB:8083"
- "$LOCAL_PORT_INFLUXDB_API:8086"