Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

1.2 KB
Raw Blame
services:
  jupyter:
    image: jupyter/scipy-notebook:python-3.11@sha256:fca4bcc9cbd49d9a15e0e4df6c666adf17776c950da9fa94a4f0a045d5c4ad33
    container_name: ods-jupyter
    ports:
      - "127.0.0.1:${JUPYTER_PORT:-8889}:8888"
    volumes:
      - ./data/jupyter/workspace:/home/jovyan/work
      - ./data/jupyter/notebooks:/home/jovyan/notebooks
    environment:
      - LLM_API_URL=${LLM_API_URL:-http://localhost:8000}
      - JUPYTER_TOKEN=${JUPYTER_TOKEN:?JUPYTER_TOKEN must be set}
      - NB_PREFIX=/
    command:
      - start.sh
      - jupyter
      - lab
      - --NotebookApp.token=${JUPYTER_TOKEN:?JUPYTER_TOKEN must be set}
      - --NotebookApp.password=
      - --NotebookApp.port=8888
      - --NotebookApp.ip=0.0.0.0
      - --NotebookApp.open_browser=False
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    deploy:
      resources:
        limits:
          memory: 4G
          cpus: '2.0'
    healthcheck:
      test: ["CMD", "curl", "-sf", "http://127.0.0.1:8888/api"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 60s
    networks:
      - ods-network

# Named volumes removed — using bind mounts only

networks:
  ods-network:
    external: true
    name: ods-network