aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Dockerfile5
-rw-r--r--docker-compose.yml19
2 files changed, 22 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 90d0cb8..a81d555 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,4 +5,9 @@ RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=
FROM python:3.10.5-slim-buster
RUN pip install jupyterlab scipy numpy poetry numba torch tensorflow transformers huggingface-hub
+RUN apt-get update && apt-get install -y curl wget unzip
+RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
+RUN apt-get -y install nodejs
+RUN pip install ipywidgets pandas pysocks
+# RUN jupyter labextension install jupyterlab_vim
COPY --from=certbuilder /certs /certs
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