-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (97 loc) · 2.41 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
89
90
91
92
93
94
95
96
97
services:
spark:
build:
context: .
dockerfile: spark.Dockerfile
user: root
environment:
- SPARK_MODE=master
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- SPARK_USER=root
- PYSPARK_PYTHON=/opt/bitnami/python/bin/python3.12
- PYSPARK_DRIVER_PYTHON=/opt/bitnami/python/bin/python3.12
- SPARK_VERSION=3.5.2
- HADOOP_VERSION=3
ports:
- '8080:8080'
- '7077:7077'
volumes:
- .:/main/workspace
- samba-volume:/main/external
security_opt:
- label:disable
- seccomp:unconfined
- apparmor:unconfined
cap_add:
- ALL
privileged: true
spark-worker:
build:
context: .
dockerfile: spark.Dockerfile
depends_on:
- spark
user: root
deploy:
replicas: ${N_REPLICAS}
environment:
- SPARK_MODE=worker
- SPARK_MASTER=$SPARK_MASTER_URL
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_WORKER_MEMORY=$MEMORY
- SPARK_EXECUTOR_MEMORY=$MEMORY
- SPARK_WORKER_CORES=$N_CORES
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- SPARK_USER=root
- PYSPARK_PYTHON=/opt/bitnami/python/bin/python3.12
- PYSPARK_DRIVER_PYTHON=/opt/bitnami/python/bin/python3.12
- SPARK_VERSION=3.5.2
- HADOOP_VERSION=3
volumes:
- .:/main/workspace
- samba-volume:/main/external
security_opt:
- label:disable
- seccomp:unconfined
- apparmor:unconfined
cap_add:
- ALL
privileged: true
almond:
build:
context: .
dockerfile: almond.Dockerfile
user: root
ports:
- 8002:8888
environment:
- JUPYTER_TOKEN=almond
- JUPYTERLAB_WORKSPACES_DIR=/main
volumes:
- .:/main/workspace
- samba-volume:/main/external
security_opt:
- label:disable
- seccomp:unconfined
- apparmor:unconfined
cap_add:
- ALL
privileged: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
volumes:
samba-volume:
driver_opts:
type: cifs
o: username=${SMB_USER},password=${SMB_PASSWORD},vers=3.0,rw,file_mode=0777,dir_mode=0777
device: ${SMB_URL}