forked from garystafford/pyspark-setup-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack-nbext.yml
64 lines (64 loc) · 1.37 KB
/
stack-nbext.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
# docker stack deploy -c stack-nbext.yml jupyter
# optional pgadmin container
version: "3.7"
networks:
demo-net:
services:
spark:
image: garystafford/all-spark-notebook-nbext:latest
ports:
- "8888:8888/tcp"
- "4040:4040/tcp"
networks:
- demo-net
working_dir: /home/$USER/work
environment:
CHOWN_HOME: "yes"
GRANT_SUDO: "yes"
NB_UID: 1000
NB_GID: 100
NB_USER: $USER
NB_GROUP: staff
user: root
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
- $PWD/work:/home/$USER/work
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: postgres1234
POSTGRES_DB: bakery
ports:
- "5432:5432/tcp"
networks:
- demo-net
volumes:
- $HOME/data/postgres:/var/lib/postgresql/data
deploy:
restart_policy:
condition: on-failure
adminer:
image: adminer:latest
ports:
- "8080:8080/tcp"
networks:
- demo-net
deploy:
restart_policy:
condition: on-failure
# pgadmin:
# image: dpage/pgadmin4:latest
# environment:
# PGADMIN_DEFAULT_EMAIL: [email protected]
# PGADMIN_DEFAULT_PASSWORD: 5up3rS3cr3t!
# ports:
# - "8180:80/tcp"
# networks:
# - demo-net
# deploy:
# restart_policy:
# condition: on-failure