-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-expose.yml
72 lines (71 loc) · 1.61 KB
/
docker-compose-expose.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
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper:3.4.6
container_name : zookeeper
hostname : zookeeper
networks:
- tweets
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
container_name : kafka
hostname: kafka
ports:
- "9092:9092"
expose:
- "9093"
networks:
- tweets
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://kafka:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://kafka:9093,OUTSIDE://kafka:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "topic_test:1:1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
nifi:
image: apache/nifi:latest
container_name : nifi
hostname : nifi
networks:
- tweets
environment:
- nifi.web.https.port=8443
- nifi.web.http.port=8080
ports:
- 8080:8080
- 8443:8443
elasticsearch:
build:
context: elasticsearch/
container_name : elasticsearch
hostname : elasticsearch
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
networks:
- tweets
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx512m -Xms512m"
kibana:
build:
context: kibana/
container_name : kibana
hostname : kibana
volumes:
- ./kibana/config/:/usr/share/kibana/config:ro
ports:
- "5601:5601"
networks:
- tweets
depends_on:
- elasticsearch
networks:
tweets:
driver: bridge