Last active
          June 24, 2024 23:04 
        
      - 
      
 - 
        
Save ronaldsuwandi/8c4362d223d16d68d7369df2ffd5f185 to your computer and use it in GitHub Desktop.  
    Docker Compose for Jupyter Lab/Notebook (no token/password required)
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: "3.9" | |
| services: | |
| jupyter: | |
| image: quay.io/jupyter/scipy-notebook | |
| ports: | |
| - "8888:8888" | |
| volumes: | |
| - ./notebooks:/home/jovyan/ | |
| environment: | |
| JUPYTER_ENABLE_LAB: "yes" | 
Doesn't work on the jupyter/all-spark-notebook image?
@madhuritm which port are you using? it should be localhost:8888
localhost:8888
Hello, yes. My docker compose is like this
version: '3'
services:
  jupyterlab:
    image: jupyter/all-spark-notebook
    ports:
      - "8889:8888"  # JupyterLab
    volumes:
      - ./data:/hdvm12/datalake  # persistent storage
    environment:
      - JUPYTER_ENABLE_LAB=yes 
  spark-master:
    image: bitnami/spark:latest
    ports:
      - "8080:8080"  # Spark Web UI
      - "7077:7077"  # Spark master
    environment:
      - SPARK_MODE=master
  spark-worker:
    image: bitnami/spark:latest
    environment:
      - SPARK_MODE=worker
      - SPARK_MASTER_URL=spark://spark-master:7077
    
    volumes:
      - ./data:/hdvm12/datalake
    depends_on:
      - spark-master
    @rafaelrdealmeida your docker compose port is mapping 8889 to localhost 8888. My understanding is the default port for Jupyter is 8888. Try changing your port to both 8888
@madhuritm which port are you using? it should be
localhost:8888
Thank you for your reply. I had something configured wrong on my putty.
@rafaelrdealmeida your docker compose port is mapping 8889 to localhost 8888. My understanding is the default port for Jupyter is 8888. Try changing your port to both 8888
Thank you for your reply. It really was a default port error
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
The docker container is created But I can't reach the jupyter notebook. Please help! It's driving me crazy
