-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 980 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 980 Bytes
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
services:
# 1. Storage Layer (MinIO)
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000" # API port for Spark
- "9001:9001" # Console port for web UI
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
volumes:
- ./data/minio_data:/data
command: server /data --console-address ":9001"
networks:
- data-network
# 2. Development Interface (Jupyter Lab)
spark-jupyter:
build: ./docker/spark
container_name: spark-jupyter
user: root
ports:
- "8888:8888"
- "4040:4040"
environment:
- SPARK_LOCAL_IP=0.0.0.0
volumes:
- ./notebooks:/opt/spark/notebooks
- ./src:/opt/spark/src
command: jupyter-lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='' --notebook-dir=/opt/spark/notebooks
networks:
- data-network
depends_on:
- minio
networks:
data-network:
driver: bridge