-
Notifications
You must be signed in to change notification settings - Fork 0
/
dc-spark.yml
107 lines (99 loc) · 2.46 KB
/
dc-spark.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
98
99
100
101
102
103
104
105
106
107
version: "3.6"
volumes:
shared-workspace:
name: "hadoop-distributed-file-system"
driver: local
services:
cre-glue:
image: tamboraorg/creglue:2020.0
container_name: creglue
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./secrets:/cre/secrets
cre-proxy:
image: tamboraorg/creproxy:2020.0
container_name: creproxy
environment:
ADMIN_EMAIL: [email protected]
CRE_DOMAIN: localhost
CRE_DEVELOPMENT: 1
ports:
- "80:80"
- "443:443"
volumes:
- "./volumes/certs:/etc/letsencrypt"
volumes_from:
- cre-glue
jupyterlab:
image: tamboraorg/crejupyter:latest
container_name: crejupyter
environment:
- CRE_SUBDOMAIN=www
- CRE_PORT=8000
- JUPYTER_ADMIN=admin
- JUPYTER_PASSWORD=geheim1
- POSTGRES_DB=jupyter
- POSTGRES_USER=jupyter
- POSTGRES_PWD=geheim2
ports:
- "8000:8000"
- "8081:8081"
volumes:
# - shared-workspace:/opt/workspace
- ./volumes/jupyter:/cre/jupyter
volumes_from:
- cre-glue
spark-master:
image: tamboraorg/crespark:latest
container_name: cresparkmaster
environment:
- CRE_SUBDOMAIN=sm0
- CRE_PORT=8080
ports:
- 8080:8080
- 7077:7077
volumes:
# - shared-workspace:/opt/workspace
# - ./volumes/jupyter:/cre/jupyter
- ./volumes/jupyter:/opt/workspace
volumes_from:
- cre-glue
spark-worker-1:
image: tamboraorg/crespark:latest
container_name: cresparkworker1
environment:
- CRE_SUBDOMAIN=sw1
- CRE_PORT=8081
- SPARK_MASTER=cresparkmaster
- SPARK_WORKER_CORES=1
- SPARK_WORKER_MEMORY=512m
ports:
- 8082:8081
volumes:
# - shared-workspace:/opt/workspace
# - ./volumes/jupyter:/cre/jupyter
- ./volumes/jupyter:/opt/workspace
volumes_from:
- cre-glue
depends_on:
- spark-master
spark-worker-2:
image: tamboraorg/crespark:latest
container_name: cresparkworker2
environment:
- CRE_SUBDOMAIN=sw2
- CRE_PORT=8081
- SPARK_MASTER=cresparkmaster
- SPARK_WORKER_CORES=1
- SPARK_WORKER_MEMORY=512m
ports:
- 8083:8081
volumes:
# - shared-workspace:/opt/workspace
# - ./volumes/jupyter:/cre/jupyter
- ./volumes/jupyter:/opt/workspace
volumes_from:
- cre-glue
depends_on:
- spark-master
#sudo /home/kmicha/anaconda3/bin/docker-compose --file dc-spark.yml up -d