-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.legacy.allinone.txt
144 lines (139 loc) · 4.23 KB
/
docker-compose.legacy.allinone.txt
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: '3.2'
services:
frr:
build:
context: frr
dockerfile: Dockerfile
args:
- FRR_VERSION=$FRR_VERSION
image: frr:$FRR_VERSION
container_name: frr
restart: unless-stopped
environment:
FRR_VERSION: $FRR_VERSION
volumes:
- type: volume
source: frr_output
target: /var/log/frr
- type: volume
source: watcher_output
target: /home/watcher/watcher/logs
cap_add:
- NET_ADMIN
- SYS_ADMIN
network_mode: "host"
watcher:
image: vadims06/isis-watcher:v1.0
restart: unless-stopped
environment:
WATCHER_NAME: $WATCHER_NAME
FRR_HOST: $FRR_HOST
FRR_PORT: $FRR_PORT
TOPOLOGRAPH_HOST: $TOPOLOGRAPH_HOST
TOPOLOGRAPH_PORT: $TOPOLOGRAPH_PORT
TOPOLOGRAPH_WEB_API_USERNAME_EMAIL: $TOPOLOGRAPH_WEB_API_USERNAME_EMAIL
TOPOLOGRAPH_WEB_API_PASSWORD: $TOPOLOGRAPH_WEB_API_PASSWORD # do not forget to add IP address to Authorised Network list
WATCHER_LOGFILE: "/home/watcher/watcher/logs/watcher.log"
#ISISD_DUMP_FILE_DIR: "/home/watcher/watcher/isisd.log"
ISISD_DUMP_FILE_DIR: "/var/log/frr/isisd.log"
TEST_MODE: $TEST_MODE
volumes:
- type: volume
source: frr_output
target: /var/log/frr
- type: volume
source: watcher_output
target: /home/watcher/watcher/logs
# for containerlab integration
# - type: bind
# source: /home/ubuntu/isiswatcher/containerlab/frr01/router1/isisd.log
# target: /home/watcher/watcher/isisd.log
# - type: bind
# source: /home/ubuntu/isiswatcher/watcher/logs/watcher.log
# target: /home/watcher/watcher/logs/watcher.log
network_mode: "host"
depends_on:
- logstash
logstash:
build:
context: logstash/
args:
LOGSTASH_OSS_VERSION: $LOGSTASH_OSS_VERSION
container_name: logstash
volumes:
- type: bind
source: ./logstash/config/logstash.yml
target: /usr/share/logstash/config/logstash.yml
read_only: true
- type: bind
source: ./logstash/pipeline
target: /usr/share/logstash/pipeline
read_only: true
- type: volume
source: watcher_output
target: /home/watcher/watcher/logs
read_only: true
# for containerlab integration
# - type: bind
# source: /home/ubuntu/isiswatcher/watcher/logs/watcher.log
# target: /home/watcher/watcher/logs/watcher.log
# read_only: true
environment:
ELASTIC_USER_LOGIN: $ELASTIC_USER_LOGIN
ELASTIC_USER_PASS: $ELASTIC_USER_PASS
ELASTIC_IP: $ELASTIC_IP
ELASTIC_PORT: $ELASTIC_PORT
MONGODB_DATABASE: $MONGODB_DATABASE
MONGODB_USERNAME: $MONGODB_USERNAME
MONGODB_PASSWORD: $MONGODB_PASSWORD
MONGODB_IP: $MONGODB_IP
MONGODB_PORT: $MONGODB_PORT
ZABBIX_HOST: $ZABBIX_HOST
DEBUG_BOOL: $DEBUG_BOOL
EXPORT_TO_MONGO_BOOL: $EXPORT_TO_MONGO_BOOL
EXPORT_TO_ELASTICSEARCH_BOOL: $EXPORT_TO_ELASTICSEARCH_BOOL
EXPORT_TO_ZABBIX_BOOL: $EXPORT_TO_ZABBIX_BOOL
EXPORT_TO_WEBHOOK_URL_BOOL: $EXPORT_TO_WEBHOOK_URL_BOOL
WEBHOOK_URL: $WEBHOOK_URL
healthcheck:
test: curl -s http://localhost:9600 >/dev/null || exit 1
interval: 10s
timeout: 10s
retries: 50
depends_on:
- logstash-index-creator
networks:
- internal
logstash-index-creator:
image: vadims06/isis-watcher:latest
container_name: logstash-index-creator
volumes:
- type: bind
source: ./logstash/index_template/create.py
target: /home/watcher/watcher/create.py
read_only: true
environment:
EXPORT_TO_ELASTICSEARCH_BOOL: $EXPORT_TO_ELASTICSEARCH_BOOL
ELASTIC_USER_LOGIN: $ELASTIC_USER_LOGIN
ELASTIC_USER_PASS: $ELASTIC_USER_PASS
ELASTIC_IP: $ELASTIC_IP
ELASTIC_PORT: $ELASTIC_PORT
entrypoint: ["python", "create.py"]
healthcheck:
test: curl -s http://${ELASTIC_IP}:${ELASTIC_PORT} >/dev/null || exit 1
interval: 30s
timeout: 10s
retries: 50
depends_on:
- frr
networks:
- internal
networks:
internal:
external:
name: topolograph_backend
volumes:
frr_output:
driver: local
watcher_output:
driver: local