diff options
author | terminaldweller <thabogre@gmail.com> | 2022-06-23 02:53:15 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-06-23 02:53:15 +0000 |
commit | c8184aa8fbb0fdbc8a00a75f2ff8f6271800ed9c (patch) | |
tree | fff40f671d24f39d99fbc9ecc2806d5dfac91d17 /docker-compose.yml | |
parent | update (diff) | |
download | jupyter-notebook-docker-compose-c8184aa8fbb0fdbc8a00a75f2ff8f6271800ed9c.tar.gz jupyter-notebook-docker-compose-c8184aa8fbb0fdbc8a00a75f2ff8f6271800ed9c.zip |
added proxy
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 3d3b61b..ff2b6fe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,13 +9,28 @@ services: - /home/jupyterlab_docker/notebooks:/opt/app/data ports: - 8889:8888 - networks: - - devijlab-net + # networks: + # - devijlab-net + network_mode: bridge entrypoint: ["jupyter", "lab"] command: ["--ip=0.0.0.0", "--port=8888", "--notebook-dir=/opt/app/data", "--allow-root"] + extra_hosts: + - "host.docker.internal:host-gateway" environment: - JUPYTER_ENABLE_LAB=yes + # - HTTP_PROXY=http://host.docker.internal:9995 + # - HTTPS_PROXY=http://host.docker.internal:9995 + # - NO_PROXY="localhost, 127.0.0.1" + - HTTP_PROXY=socks5://172.17.0.1:9995 + - HTTPS_PROXY=socks5://172.17.0.1:9995 + - NO_PROXY="localhost, 127.0.0.1" volumes: devijlab-vault: networks: devijlab-net: + ipam: + driver: overlay + config: + - subnet: 172.18.0.0/16 + - ip_range: 172.18.5.0.24 + - gateway: 172.18.0.1 |