-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yaml
219 lines (206 loc) · 5.92 KB
/
docker-compose.yaml
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
version: "3.3"
services:
mongo:
image: "mongo:4.0.5"
container_name: katana-mongo
restart: always
volumes:
- "katana-mongo-datadb:/data/db"
- "katana-mongo-configdb:/data/configdb"
zookeeper:
image: confluentinc/cp-zookeeper:5.4.2
container_name: katana-zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zookeeper:2888:3888
ZOOKEEPER_CLIENT_PORT: 2181
restart: always
volumes:
- katana-zk-data:/var/lib/zookeeper/data
- katana-zk-log:/var/lib/zookeeper/log
- katana-zk-secrets:/etc/zookeeper/secrets
kafka:
image: confluentinc/cp-enterprise-kafka:5.4.2
container_name: katana-kafka
hostname: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka:19092,LISTENER_DOCKER_EXTERNAL://${KATANA_HOST:-127.0.0.1}:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 1
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHa\
ndler=INFO,state.change.logger=INFO"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CREATE_TOPICS: "slice:1:1"
restart: always
volumes:
- katana-kafka-data:/var/lib/kafka/data
- katana-kafka-secrets:/etc/kafka/secrets
depends_on:
- zookeeper
katana-nbi:
image: "${DOCKER_REG}${DOCKER_REPO}katana-nbi:${DOCKER_TAG}"
build:
context: .
dockerfile: katana-nbi/Dockerfile
container_name: katana-nbi
command: gunicorn -b 0.0.0.0:8000 --workers 3 --access-logfile - --reload
"katana.app:create_app()"
volumes:
- "katana-prom-targets:/targets"
ports:
- "8000:8000"
environment:
PYTHONWARNINGS: "ignore:Unverified HTTPS request"
KATANA_MONITORING: ${KATANA_MONITORING}
restart: always
APEX: ${APEX}
depends_on:
- kafka
- mongo
# logging:
# driver: syslog
# options:
# syslog-address: "udp://10.30.0.245:5140"
# tag: "SliceManager"
# syslog-format: "rfc5424"
katana-mngr:
image: "${DOCKER_REG}${DOCKER_REPO}katana-mngr:${DOCKER_TAG}"
container_name: katana-mngr
build:
context: .
dockerfile: katana-mngr/Dockerfile
command: python3 katana/katana-mngr.py
volumes:
- "katana-grafana-templates:/katana-grafana/templates"
environment:
KATANA_MONITORING: ${KATANA_MONITORING}
APEX: ${APEX}
env_file:
- "katana-mngr/.env"
- "katana-grafana/.env"
restart: always
depends_on:
- katana-nbi
- mongo
# logging:
# driver: syslog
# options:
# syslog-address: "udp://10.30.0.245:5140"
# tag: "SliceManager"
# syslog-format: "rfc5424"
katana-cli:
image: "${DOCKER_REG}${DOCKER_REPO}katana-cli:${DOCKER_TAG}"
container_name: katana-cli
build:
context: .
dockerfile: katana-cli/Dockerfile
command: >
/bin/bash
stdin_open: true
tty: true
network_mode: "host"
restart: always
depends_on:
- katana-nbi
katana-swagger:
image: "${DOCKER_REG}${DOCKER_REPO}katana-swagger:${DOCKER_TAG}"
container_name: katana-swagger
build:
context: .
dockerfile: katana-swagger/Dockerfile
restart: always
environment:
- SWAGGER_JSON=/my_swagger/swagger.json
- KATANA_HOST=${KATANA_HOST}
- KATANA_VERSION=${DOCKER_TAG}
ports:
- "8001:8080"
depends_on:
- katana-mngr
katana-prometheus:
image: "${DOCKER_REG}${DOCKER_REPO}katana-prometheus:${DOCKER_TAG}"
container_name: katana-prometheus
build:
context: .
dockerfile: katana-prometheus/Dockerfile
volumes:
- "katana-prometheus:/prometheus"
- "katana-prom-targets:/etc/prometheus/targets"
restart: unless-stopped
command: >
--web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
--storage.tsdb.path=/prometheus
--web.console.libraries=/usr/share/prometheus/console_libraries
--web.console.templates=/usr/share/prometheus/consoles
ports:
- "9090:9090"
katana-alertmanager:
image: "${DOCKER_REG}${DOCKER_REPO}katana-alertmanager:${DOCKER_TAG}"
container_name: katana-alertmanager
build:
context: .
dockerfile: katana-alertmanager/Dockerfile
restart: unless-stopped
ports:
- "9093:9093"
depends_on:
- katana-prometheus
volumes:
- katana-alertmanager:/alertmanager
katana-grafana:
image: "${DOCKER_REG}${DOCKER_REPO}katana-grafana:${DOCKER_TAG}"
container_name: katana-grafana
build:
context: .
dockerfile: katana-grafana/Dockerfile
restart: unless-stopped
ports:
- "3000:3000"
env_file: katana-grafana/.env
depends_on:
- katana-prometheus
katana-nfv_mon:
image: "${DOCKER_REG}${DOCKER_REPO}katana-nfv_mon:${DOCKER_TAG}"
container_name: katana-nfv_mon
build:
context: .
dockerfile: katana-nfv_mon/Dockerfile
restart: unless-stopped
env_file:
- "katana-grafana/.env"
- "katana-nfv_mon/.env"
command: >
python katana/exporter.py
ports:
- "8002:8002"
depends_on:
- katana-mngr
- katana-grafana
katana-apex:
image: "${DOCKER_REG}${DOCKER_REPO}katana-apex:${DOCKER_TAG}"
container_name: katana-apex
build:
context: .
dockerfile: katana-apex/Dockerfile
restart: unless-stopped
depends_on:
- katana-mngr
volumes:
katana-mongo-datadb: {}
katana-mongo-configdb: {}
katana-zk-data: {}
katana-zk-log: {}
katana-zk-secrets: {}
katana-kafka-data: {}
katana-kafka-secrets: {}
katana-prometheus: {}
katana-prom-targets: {}
katana-grafana-templates: {}
katana-alertmanager: {}