-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_reduced.yml
85 lines (82 loc) · 1.84 KB
/
docker-compose_reduced.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
version: '2'
networks:
prodnetwork:
driver: bridge
services:
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
ports:
- "2181:2181"
networks:
- prodnetwork
kafka:
image: wurstmeister/kafka
container_name: kafka
ports:
- "9092:9092"
environment:
# KAFKA_ADVERTISED_HOST_NAME: HOSTIP
# KAFKA_CREATE_TOPICS: "topic:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- prodnetwork
depends_on:
- zookeeper
producer:
container_name: producer
image: miciav/producer
environment:
KAFKA_ADDRESS: kafka:9092
ZK_ADDRESS: zookeeper:2181
depends_on:
- kafka
- zookeeper
networks:
- prodnetwork
links:
- kafka
restart: on-failure:10
zeppelin:
container_name: zeppelin
image: dylanmei/zeppelin
environment:
ZEPPELIN_PORT: 8000
ZEPPELIN_JAVA_OPTS: >-
-Dspark.driver.memory=1g
-Dspark.executor.memory=1g
MASTER: local[*]
KAFKA_ADDRESS: kafka:9092
depends_on:
- kafka
- zookeeper
- cassandra
links:
- cassandra
- kafka
ports:
- "8000:8000"
volumes:
- ./zeppelin/about.json:/usr/zeppelin/notebook/about.json
- ./zeppelin/data:/usr/zeppelin/data
- ./zeppelin/notebooks:/usr/zeppelin/notebook
- ./zeppelin/conf:/usr/zeppelin/conf
networks:
- prodnetwork
cassandra:
container_name: cassandra
image: spotify/cassandra
ports:
- "7001:7001"
- "7199:7199"
- "9160:9160"
- "7000:7000"
- "9042:9042"
volumes:
- ./cassandra:/var/lib/cassandra
networks:
- prodnetwork