1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-10 11:10:29 +02:00
dockerfiles/jupyter/README.md

58 lines
1005 B
Markdown
Raw Normal View History

2016-05-27 07:24:39 +02:00
jupyter
=======
2016-05-27 08:34:08 +02:00
Minimal Jupyter Notebook Stack
## docker-compose.yml
2020-09-09 09:01:34 +02:00
[how to select an image](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html)
2016-05-27 08:34:08 +02:00
```yaml
notebook:
2020-09-09 09:01:34 +02:00
image: jupyter/scipy-notebook
hostname: jupyter-notebook
2016-05-27 08:34:08 +02:00
ports:
- "8888:8888"
volumes:
2020-04-22 12:17:32 +02:00
- ./data:/home/jovyan
2016-05-27 08:34:08 +02:00
restart: unless-stopped
```
## up and running
2020-04-22 12:17:32 +02:00
```bash
$ cd ~/fig/jupyter/
$ mkdir -p data/.jupyter
$ chown -R 1000:100 data
$ docker-compose up -d
$ curl http://127.0.0.1:8888
2016-05-27 08:34:08 +02:00
```
2020-04-22 12:17:32 +02:00
## reset password
```bash
$ docker-compose exec notebook bash
>>> jupyter notebook password
Enter password: ******
Verify password: ******
[NotebookPasswordApp] Wrote hashed password to /home/jovyan/.jupyter/jupyter_notebook_config.json
$ docker-compose restart
```
## without password
File: ./data/.jupyter/jupyter_notebook_config.json
```json
{
"NotebookApp": {
"token": "",
"password": ""
}
}
2016-05-27 08:34:08 +02:00
```
2020-04-22 12:17:32 +02:00
## nginx config
- <https://hands-on.cloud/how-to-setup-jupyter-behind-nginx-proxy/>