-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjupyterlab-service.yml
39 lines (35 loc) · 1.34 KB
/
jupyterlab-service.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
version: "3.9"
services:
app:
image: teachjing/jupyter-playground:latest
volumes:
- /var/data/config/jupyter-playground/config/:/home/jovyan/.jupyter/
- /var/data/config/jupyter-playground/Notebooks:/home/jovyan/Notebooks
- /var/run/docker.sock:/var/run/docker.sock
user: root
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 30s
labels:
# traefik
- traefik.enable=true
- traefik.docker.network=traefik_public
# traefikv1
#- traefik.frontend.rule=Host:sonarr.skyserver.cc
#- traefik.port=8989
# uncomment if you want to protect sonarr with traefik-forward-auth using traefikv1
# - traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181
# - traefik.frontend.auth.forward.authResponseHeaders=X-Forwarded-User
# - traefik.frontend.auth.forward.trustForwardHeader=true
# traefikv2
- "traefik.http.routers.jupyter.rule=Host(`jupyter.skyserver.cc`)"
- "traefik.http.routers.jupyter.entryPoints=websecure"
- "traefik.http.services.jupyter.loadbalancer.server.port=8888"
- "traefik.http.routers.jupyter.middlewares=forward-auth" # this line enforces traefik-forward-auth
networks:
- traefik_public
networks:
traefik_public:
external: true