-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
53 lines (52 loc) · 1.47 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
version: '2'
services:
postgres:
image: postgres:latest
container_name: postgres
environment:
- "TZ=Europe/Amsterdam"
- "POSTGRES_USER=docker"
- "POSTGRES_PASSWORD=docker"
ports:
- "5432:5432"
volumes:
- ".:/docker-entrypoint-initdb.d"
cassandra:
image: cassandra:3
container_name: rockthejvm-sparkstreaming-cassandra
ports:
- "7000:7000"
- "9042:9042"
environment:
- "CASSANDRA_CLUSTER_NAME=OUR_DOCKERIZED_CASSANDRA_SINGLE_NODE_CLUSTER"
zookeeper:
container_name: rockthejvm-sparkstreaming-zookeeper
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
container_name: rockthejvm-sparkstreaming-kafka
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS:
"INTERNAL://kafka:9090,\
EXTERNAL://:9092"
KAFKA_ADVERTISED_LISTENERS:
"INTERNAL://kafka:9090,\
EXTERNAL://localhost:9092"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP:
"INTERNAL:PLAINTEXT,\
EXTERNAL:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
# # Daniel deprecated the flume docker container. Left here in case this ever needs revival.
# flume:
# container_name: rockthejvm-sparkstreaming-flume
# image: bigcontainer/flume
# ports:
# - "1234:1234"
# - "1235:1235"
# volumes:
# - "./flume/rockthejvm-flume.conf:/opt/flume/rockthejvm-flume.conf"