forked from Juniper/open-nti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-persistent.yml
117 lines (111 loc) · 3.02 KB
/
docker-compose-persistent.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
input-jti:
image: $INPUT_JTI_IMAGE_NAME:$IMAGE_TAG
container_name: $INPUT_JTI_CONTAINER_NAME
restart: always
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
restart: always
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
volumes:
- /etc/localtime:/etc/localtime:ro
- ./$INPUT_SNMP_DIR/templates/telegraf.tmpl:/data/templates/telegraf.tmpl
ports:
- "$LOCAL_PORT_SNMP:162/udp"
links:
- opennti
input-internal:
# image: $INPUT_INTERNAL_IMAGE_NAME:$IMAGE_TAG
build: $INPUT_INTERNAL_DIR
container_name: $INPUT_INTERNAL_CONTAINER_NAME
environment:
- "HOST_PROC=/rootfs/proc"
- "HOST_SYS=/rootfs/sys"
- "HOST_ETC=/rootfs/etc"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
- /etc:/rootfs/etc:ro
links:
- opennti
input-oc:
# image: $INPUT_OC_IMAGE_NAME:$IMAGE_TAG
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_con:8086/
ports:
- "9092:9092"
links:
- opennti
chronograf:
image: quay.io/influxdb/chronograf:1.5.0.1
container_name: $CHRONOGRAF_CONTAINER_NAME
environment:
INFLUXDB_URL: http://opennti_con:8086/
KAPACITOR_URL: http://kapacitor:9092/
ports:
- "8888:8888"
links:
- opennti
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"
restart: always
volumes:
- ./$LOCAL_DIR_GF_PROVISIONING:/src/provisioning
- ./$LOCAL_DIR_DASHBOARD:/src/dashboards
- ./$LOCAL_DIR_DATA:/opt/open-nti/data
- ./$LOCAL_DIR_LOG:/opt/open-nti/logs
- ./$LOCAL_DIR_DB_DATA:/data
- ./$LOCAL_DIR_DB_VAR:/var/lib/influxdb
- /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"