-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.yml
38 lines (38 loc) · 1.42 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
version: '3'
services:
dse: # DataStax Enterprise (Apache Cassandra + Apache Spark + much more)
image: datastax/dse-server:6.7.4
command: [ -s -k ] # Run with Search and Analytics capabilities enabled
environment:
DS_LICENSE: accept # Accept licence on start
JVM_EXTRA_OPTS: -Xmx2g -Xms2g
cap_add:
- IPC_LOCK # Allow DSE to lock memory with mlock
ulimits:
memlock: -1 # Lock memory
ports:
- "4040:4040"
- "7080:7080"
- "7081:7081"
- "8983:8983"
- "9042:9042"
- "9077:9077"
- "10000:10000"
jupyter: # Jupyter Notebook
build: ./pyspark-cassandra
volumes:
- ./jupyter:/home/jovyan
ports:
- "8888:8888" # Exposes port to be available externally
environment:
PYSPARK_SUBMIT_ARGS: '--packages datastax:spark-cassandra-connector:2.4.0-s_2.11 --conf spark.cassandra.connection.host=dse pyspark-shell'
command: start-notebook.sh --NotebookApp.password='sha1:a536879cf56d:a895a85b375e09f7d6a8211cdcd0e87f16aa4e60'
studio: # Web interface for the Apache Cassandra and DataStax Enterprise
image: datastax/dse-studio:6.7.0
volumes:
- ./dse-studio/connections:/var/lib/datastax-studio/connections/admin
- ./dse-studio/notebooks:/opt/datastax-studio/examples/notebooks
ports:
- "9091:9091" # Exposes port to be available externally
environment:
DS_LICENSE: accept # Accept licence on start