Created
December 23, 2025 17:14
-
-
Save bdunnette/46d8c0b6e4aef87a423e17091de99389 to your computer and use it in GitHub Desktop.
Basic compose setup for Open Notebook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| open_notebook: | |
| image: docker.io/lfnovo/open_notebook:v1-latest-single | |
| ports: | |
| - "8502:8502" # Web UI | |
| - "5055:5055" # API (required!) | |
| env_file: | |
| - ./docker.env | |
| pull_policy: always | |
| volumes: | |
| - ./notebook_data:/app/data | |
| - ./surreal_single_data:/mydata | |
| restart: always | |
| ollama: | |
| image: docker.io/ollama/ollama:latest | |
| ports: | |
| - 7869:11434 | |
| volumes: | |
| - .:/code | |
| - ./ollama/ollama:/root/.ollama | |
| container_name: ollama | |
| pull_policy: always | |
| tty: true | |
| restart: always | |
| environment: | |
| - OLLAMA_KEEP_ALIVE=24h | |
| - OLLAMA_HOST=0.0.0.0 | |
| #networks: | |
| # - ollama-docker | |
| ollama-webui: | |
| image: ghcr.io/open-webui/open-webui:main | |
| container_name: ollama-webui | |
| volumes: | |
| - ./ollama/ollama-webui:/app/backend/data | |
| depends_on: | |
| - ollama | |
| ports: | |
| - 8080:8080 | |
| environment: # https://docs.openwebui.com/getting-started/env-configuration#default_models | |
| - OLLAMA_BASE_URLS=http://host.docker.internal:7869 #comma separated ollama hosts | |
| - ENV=dev | |
| - WEBUI_AUTH=False | |
| - WEBUI_NAME=valiantlynx AI | |
| - WEBUI_URL=http://localhost:8080 | |
| - WEBUI_SECRET_KEY=t0p-s3cr3t | |
| - NO_PROXY=host.docker.internal | |
| extra_hosts: | |
| - host.docker.internal:host-gateway | |
| restart: unless-stopped | |
| #networks: | |
| # - ollama-docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Database connection (required for single-container) | |
| SURREAL_URL="ws://localhost:8000/rpc" | |
| SURREAL_USER="root" | |
| SURREAL_PASSWORD="root" | |
| SURREAL_NAMESPACE="open_notebook" | |
| SURREAL_DATABASE="production" | |
| # Provider config | |
| #OPENAI_API_KEY=your_key | |
| #GEMINI_API_KEY=your_key | |
| OLLAMA_API_BASE=http://localhost:11434 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment