-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (52 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
58 lines (52 loc) · 1.27 KB
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
version: '3.7'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka:
image: confluentinc/cp-kafka:latest
container_name: kafka
hostname: kafka
ports:
- "9093:9093"
depends_on:
- zookeeper
environment:
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:9093
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
hostname: elasticsearch
container_name: elasticsearch
environment:
- discovery.type=single-node
ports:
- "9200:9200"
neo4j:
image: neo4j:4.2.3
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_AUTH=neo4j/some_password
producer_app:
build:
context: .
dockerfile: Dockerfile-producer
depends_on:
- kafka
consumer_app:
build:
context: .
dockerfile: Dockerfile-consumer
depends_on:
- kafka
- elasticsearch
- neo4j