version: '3.8' services: jupyterlab_ai: image: devijlab:v0.2 build: context: . # user: ${UID}:${GID} volumes: - /home/devi/jupyterlab_docker/datasets:/datasets:ro - /home/devi/jupyterlab_docker/notebooks:/opt/app/data/ ports: - 127.0.0.1:8889:8888 # 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://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" - NVIDIA_VISIBLE_DEVICES=all runtime: nvidia restart: unless-stopped 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