-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (79 loc) · 2.14 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
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
85
86
87
88
services:
zookeeper:
image: bitnami/zookeeper:latest
container_name: zookeeper-portfolio
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
ports:
- "2181:2181"
volumes:
- ${HOST_SHARED_DIR}/zookeeper:/bitnami/zookeeper
networks:
- hadoop_spark_network
kafka:
image: bitnami/kafka:latest
container_name: kafka-portfolio
depends_on:
- zookeeper
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_LISTENERS=INTERNAL://127.0.0.1:9092,EXTERNAL://0.0.0.0:29092
- KAFKA_ADVERTISED_LISTENERS=INTERNAL://127.0.0.1:9092,EXTERNAL://${IP_ADDRESS}:29092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
ports:
- "9092:9092"
- "29092:29092"
volumes:
- ${HOST_SHARED_DIR}/kafka:/bitnami/kafka
networks:
- hadoop_spark_network
dynamodb-local:
image: amazon/dynamodb-local:latest
container_name: dynamodb-local-portfolio
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath /data"
ports:
- "8000:8000"
volumes:
- ${HOST_SHARED_DIR}/dynamodb-local:/data
networks:
- hadoop_spark_network
dynamodb:
image: "aaronshaf/dynamodb-admin"
container_name: dynamodb-admin-portfolio
depends_on:
- dynamodb-local
restart: always
ports:
- "8001:8001"
environment:
- DYNAMO_ENDPOINT=http://dynamodb-local:8000
- AWS_REGION=ap-southeast-1
networks:
- hadoop_spark_network
spark-jupyter:
image: jupyter/all-spark-notebook:python-3.11.6
container_name: spark-jupyter-portfolio
ports:
- "8888:8888"
- "4040:4040"
environment:
JUPYTER_PORT: 8888
SPARK_UI_PORT: 4040
GRANT_SUDO: yes
volumes:
- ${HOST_SHARED_DIR}/spark-jupyter-data:/home/jovyan/data
networks:
- hadoop_spark_network
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
zookeeper:
kafka:
dynamodb:
spark-jupyter:
networks:
hadoop_spark_network:
driver: bridge