title: Docker:部署数据科学栈Jupyter tags: [] id: '2378' categories:
version: '3.3'
services:
datascience-notebook:
ports:
- '57002:8888'
container_name: jupyterR
restart: always
image: 'jupyter/datascience-notebook:r-4.1.3'
command: start-notebook.sh --NotebookApp.token='***'
version: '3.3'
services:
datascience-notebook:
ports:
- '57002:8888'
container_name: jupyterR
restart: always
volumes:
- '/home/limour/upload:/home/jovyan/upload'
- '/home/limour/upload/opt/opt:/opt'
- '/home/limour/upload/home/jovyan:/home/jovyan'
image: 'jupyter/datascience-notebook:r-4.1.3'
command: start-notebook.sh --NotebookApp.token='***'
options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/") ##指定镜像,这个是中国科技大学镜像
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) ##指定install.packages安装镜像,这个是清华镜像
options(ggrepel.max.overlaps = Inf)