-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (120 loc) · 3.26 KB
/
docker-compose.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
117
118
119
120
version: '3'
services:
http-dummy-server:
image: vimagick/json-server
hostname: http-dummy-server
container_name: http-dummy-server
command: -H 0.0.0.0 -p 3000 -w access-point-sims.json --routes routes.json
ports:
- "3000:3000"
volumes:
- ./docker/http-dummy-server/ndac-responses:/data
restart: always
kafka:
image: wurstmeister/kafka:latest
hostname: kafka
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_PORT: 9092
KAFKA_LOG_DIRS: "/tmp/kafka-logs"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
logging:
driver: none
mongo-db:
image: mongo:latest
hostname: mongo-db
container_name: mongo-db
# environment:
# MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
# MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
ports:
- "27017:27017"
command: --nojournal
# volumes:
# - ./docker/mongo-db/data/db:/data/db
nifi:
build:
context: .
dockerfile: ./docker/nifi/Dockerfile
hostname: nifi
container_name: nifi
user: root
environment:
SINGLE_USER_CREDENTIALS_USERNAME: ${NIFI_USERNAME}
# Must be of 12 characters min
SINGLE_USER_CREDENTIALS_PASSWORD: ${NIFI_PASSWORD}
NIFI_JVM_HEAP_INIT: 4g
NIFI_JVM_HEAP_MAX: 6g
ports:
- "8443:8443"
volumes:
- ./docker/nifi/drivers/nars:/opt/nifi/nifi-current/extensions
node-exporter:
image: prom/node-exporter
hostname: node-exporter
container_name: node-exporter
ports:
- "9100:9100"
depends_on:
- prometheus
process-manager:
build:
context: .
dockerfile: ./docker/process-manager/Dockerfile
hostname: process-manager
container_name: process-manager
environment:
- PROCESS_MANAGER_URI=${PROCESS_MANAGER_URI}
- NIFI_URI=${NIFI_URI}
- NIFI_USERNAME=${NIFI_USERNAME}
- NIFI_PASSWORD=${NIFI_PASSWORD}
ports:
- "8082:8080"
volumes:
- ./docker/process-manager/process_manager:/opt/process-manager/process_manager
depends_on:
- nifi
prometheus:
image: prom/prometheus
hostname: prometheus
container_name: prometheus
ports:
- "9099:9090"
volumes:
- ./docker/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
telemetry-orchestrator:
build:
context: .
dockerfile: ./docker/telemetry-orchestrator/Dockerfile
hostname: telemetry-orchestrator
container_name: telemetry-orchestrator
environment:
- NIFI_URI=${NIFI_URI}
- NIFI_USERNAME=${NIFI_USERNAME}
- NIFI_PASSWORD=${NIFI_PASSWORD}
- TELEMETRY_ORCHESTRATOR_URI=${TELEMETRY_ORCHESTRATOR_URI}
- MONGO_URL=${MONGO_URL}
- PROMETHEUS_URI=${PROMETHEUS_URI}
- KAFKA_ENDPOINT=${KAFKA_ENDPOINT}
- SITE_ID=${SITE_ID}
ports:
- "8080:8080"
volumes:
- ./docker/telemetry-orchestrator/telemetry_orchestrator:/opt/telemetry-orchestrator/telemetry_orchestrator
depends_on:
- nifi
zookeeper:
image: zookeeper
hostname: zookeeper
container_name: zookeeper
ports:
- "2181"
logging:
driver: none