简体   繁体   中英

How can I access Jupyter Notebook on single port (8888) running on multiple docker containers ?

I'm running Web application outside of the container and installation of Jupyter Notebook is done in a docker container. Now I would like to access Jupyter Notebook on the web page, running in multiple Docker containers.

This use case calls for having a way to route to a specific container based on URL path. So, you can use something like traefik to act as a gateway to your many docker containers.

Each of your jupyter container should have a different Path: label and that would let traefik route traffic to the correct container when making requests like http://hostname/jupyter1 for example.

Check the traefik matcher docs for more information on the labels required.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM