From 612d6f4056a87010a36f0def37135d90609baa3f Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 21 Oct 2023 21:36:56 -0400 Subject: update --- Dockerfile | 2 +- docker-compose.yml | 29 +++++++++++++++++++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index b1e9189..2665403 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ RUN apk add openssl WORKDIR /certs RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert && cat server.key server.cert > cert.pem -FROM nvidia/cuda:12.2.2-runtime-ubuntu20.04 +FROM nvidia/cuda:12.2.2-runtime-ubuntu22.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update &&\ apt-get install -y software-properties-common &&\ diff --git a/docker-compose.yml b/docker-compose.yml index 9b99b3f..681aa93 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,31 +1,44 @@ version: '3.8' services: jupyterlab_ai: - image: devijlab:v0.2 + image: devijlab:v1.1.0 build: context: . # user: ${UID}:${GID} + deploy: + resources: + limits: + memory: 16384M + logging: + driver: "json-file" + options: + max-size: "200m" volumes: - /home/devi/jupyterlab_docker/datasets:/datasets:ro - /home/devi/jupyterlab_docker/notebooks:/opt/app/data/ ports: - - 127.0.0.1:8889:8888 + - '[::1]:8889:8889' # networks: # - devijlab-net network_mode: bridge - entrypoint: ["jupyter", "lab"] - command: ["--ip=0.0.0.0", "--port=8888", "--notebook-dir=/opt/app/data", "--allow-root"] + entrypoint: ["/usr/bin/python3.10", "/usr/local/bin/jupyter", "lab"] + command: ["--ip=0.0.0.0", "--port=8889", "--notebook-dir=/opt/app/data", "--allow-root"] extra_hosts: - "host.docker.internal:host-gateway" environment: - JUPYTER_ENABLE_LAB=yes - - HTTP_PROXY=http://172.17.0.1:8118 - - HTTPS_PROXY=http://172.17.0.1:8118 - - ALL_PROXY=socks5h://172.17.0.1:9995 - - NO_PROXY="localhost, 127.0.0.1" + - HTTP_PROXY=http://172.17.0.1:8120 + - HTTPS_PROXY=http://172.17.0.1:8120 + - ALL_PROXY=socks5h://172.17.0.1:9001 + - NO_PROXY="localhost, 127.0.0.1, ::1" - NVIDIA_VISIBLE_DEVICES=all runtime: nvidia restart: unless-stopped + dns: + - 9.9.9.9 + - 149.112.112.112 + - 2620:fe::fe + - 2620:fe::9 volumes: devijlab-vault: networks: -- cgit v1.2.3