aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 9b99b3fcc3db98092ea5f8270d76cfae752b8a32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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