-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
48 lines (46 loc) · 1.5 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
version: '3'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- 2181:2181
kafka:
image: wurstmeister/kafka
ports:
- 9092:9092
environment:
#for some machines it might be required to change kafka to their host IP adress (usually 192.168.99.100)
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
producer:
image: projectjackdaw/producer
volumes:
- ./flightdata-kafka-producer/:/volume/
consumer:
image: projectjackdaw/consumer
volumes:
- ./flightdata-kafka-consumer/:/volume/
schema-registry:
image: confluent/schema-registry
ports:
- 8081:8081
depends_on:
- zookeeper
- kafka
environment:
#for some machines it might be required to change schema-registry to their host IP adress (usually 192.168.99.100)
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
SCHEMA_REGISTRY_AVRO_COMPATIBILITY_LEVEL: none
restart: unless-stopped
visualization:
image: projectjackdaw/visualization
ports:
- 3001:3001
charts:
image: projectjackdaw/charts
ports:
- 3000:3000
# sudo docker run --net innovativeprojectjackdaw_default -d --name schema-registry -p 8081:8081 --link innovativeprojectjackdaw_zookeeper_1:zookeeper --link wurstmeister/kafka:kafka confluent/schema-registry