services:
jupyter:
image: skd93/jupyterlab:latest
restart: unless-stopped
ports:
- "${JUPYTER_PORT:-8888}:8888"
volumes:
- .:/home/jovyan/work
working_dir: /home/jovyan/work
environment:
TZ: ${TZ:-Asia/Kolkata}
JUPYTER_PORT: ${JUPYTER_PORT:-8888}
JUPYTER_TOKEN: ${JUPYTER_TOKEN:-}
JUPYTER_PASSWORD: ${JUPYTER_PASSWORD:-1234}
JUPYTER_DISABLE_AUTH: ${JUPYTER_DISABLE_AUTH:-false}
http://localhost:8888testapiVersion: apps/v1
kind: Deployment
metadata:
name: jupyter-lab
spec:
replicas: 1
selector:
matchLabels:
tier: jupyter-lab
template:
metadata:
labels:
tier: jupyter-lab
spec:
volumes:
- name: jupyterlab-storage
persistentVolumeClaim:
claimName: jupyterlab-storage
containers:
- name: jupyter-lab
image: skd93/jupyterlab:v1-py3.12
volumeMounts:
- name: jupyterlab-storage
mountPath: /workspace
---
apiVersion: v1
kind: Service
metadata:
name: jupyter-lab
spec:
type: NodePort
ports:
- port: 8888
targetPort: 8888
nodePort: 30010
selector:
tier: jupyter-lab
---
# PVC
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jupyterlab-storage
namespace: jupyter-lab
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "10Gi"
Content type
Image
Digest
sha256:14832968d…
Size
4.6 GB
Last updated
2 months ago
docker pull skd93/jupyterlab