-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdata_monitoring.nbs
59 lines (53 loc) · 1.39 KB
/
data_monitoring.nbs
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
version: '3.3'
services:
################################################################################
# real implemented and used services
################################################################################
mqttbroker:
environment:
- KEEP_SERVICE_RUNNING=yes
tty: true
container_name: ${NBS_PROJECT}_mqttbroker
hostname: mqttbroker
image: ${NBS_PROJECT}_mqttbroker:${VERSION:-latest}
build:
context: ./mqttbroker
args:
- VERSION=${VERSION:-latest}
privileged: true
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
security_opt:
- apparmor:docker-default
depends_on:
- upstream
expose:
# Opens mqttbroker ports on the container
- 1883
networks:
internet:
elastic:
environment:
- KEEP_SERVICE_RUNNING=yes
tty: true
container_name: ${NBS_PROJECT}_elastic
hostname: elastic
image: ${NBS_PROJECT}_elastic:${VERSION:-latest}
build:
context: ./elastic
args:
- VERSION=${VERSION:-latest}
privileged: true
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
security_opt:
- apparmor:docker-default
depends_on:
- upstream
expose:
# Opens elastic ports on the container
- 9200
networks:
internet:
# continue only after elastic is up
#nbs wait;elastic;elasticsearch running
#nbs resolve;mqttbroker
#nbs resolve;elastic