mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 14:31:51 +01:00
update jupyter
This commit is contained in:
@@ -5,9 +5,12 @@ Minimal Jupyter Notebook Stack
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
[how to select an image](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html)
|
||||
|
||||
```yaml
|
||||
notebook:
|
||||
image: jupyter/minimal-notebook
|
||||
image: jupyter/scipy-notebook
|
||||
hostname: jupyter-notebook
|
||||
ports:
|
||||
- "8888:8888"
|
||||
volumes:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
notebook:
|
||||
image: jupyter/minimal-notebook
|
||||
image: jupyter/scipy-notebook
|
||||
hostname: jupyter-notebook
|
||||
ports:
|
||||
- "8888:8888"
|
||||
volumes:
|
||||
|
||||
33
jupyter/nginx.conf
Normal file
33
jupyter/nginx.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
upstream jupyter_notebook {
|
||||
server 127.0.0.1:8888;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name jupyter.example.com;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name jupyter.example.com;
|
||||
|
||||
ssl_certificate example.com.crt;
|
||||
ssl_certificate_key example.com.key;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
location / {
|
||||
proxy_pass http://jupyter_notebook;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location ~* /(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/? {
|
||||
proxy_pass http://jupyter_notebook;
|
||||
proxy_set_header Host $host;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade "websocket";
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_read_timeout 86400;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user