-
Notifications
You must be signed in to change notification settings - Fork 79
/
docker-compose.yml
54 lines (50 loc) · 1.38 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
version: '2'
services:
zookeeper: # thanks to https://github.com/confluentinc/cp-docker-images/issues/265#issuecomment-314442790
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 32181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "32181:32181"
extra_hosts:
- "localhost: 127.0.0.1"
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:32181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
ports:
- "9092:9092"
extra_hosts:
- "localhost: 127.0.0.1"
cassandra:
image: cassandra:3.11
ports:
- "9042:9042"
- "7199:7199"
volumes:
- ./src/conf/cassandra/schema.cql:/schema.cql
extra_hosts:
- "localhost: 127.0.0.1"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.0
container_name: elasticsearch
# environment: ['http.host=0.0.0.0', 'transport.host=127.0.0.1']
ports:
- "9200:9200"
extra_hosts:
- "localhost: 127.0.0.1"
kibana:
image: docker.elastic.co/kibana/kibana:6.3.0
container_name: kibana
ports:
- "5601:5601"
depends_on: ['elasticsearch']
extra_hosts:
- "localhost: 127.0.0.1"