docker compose vs docker

21 views
Skip to first unread message

Chris Bulleri

unread,
Jun 12, 2019, 3:45:19 PM6/12/19
to Project Jupyter
I've had success doing a docker run with the following command but the docker compose is not working.  It is related to security

This works
docker run -it \
           -e JUPYTER_ENABLE_LAB=yes \
           -p 8888:8888 \
           -v /ABJ/notebook/:/home/jovyan/work \
           -v /ABJ/results/:/home/jovyan/results \
           jupyter/datascience-notebook \
           start.sh jupyter lab --LabApp.token=''

This does not:  I want to say that the --LabApp.token is the problem and if I rmove the command: then it comes up fine but I need the token.


version: "3"
services:
  notebook:
    container_name: notebook
    environment:
      - JUPYTER_ENABLE_LAB=yes
    command:
      - start.sh jupyter lab --LabApp.token=``
    entrypoint:
      - tini
      - -g
      - --
    image: jupyter/datascience-notebook
    ports:
      - 8889:8888
    restart: always
    volumes:
      - /mount/notebook/:/home/jovyan/work
      - /mount/results/:/home/jovyan/results
    working_dir: /home/jovyan

Reply all
Reply to author
Forward
0 new messages