forked from Juniper/open-nti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-persistent.yml
82 lines (77 loc) · 2.05 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
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
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
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_USERS_ALLOW_SIGN_UP=false"
# - "GF_AUTH_ANONYMOUS_ENABLED=true"
restart: always
volumes:
- ./$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"