docs/5-CONFIGURATION/database.md
Open Notebook uses SurrealDB for its database needs.
Open Notebook should work out of the box with SurrealDB as long as the environment variables are correctly setup.
The example above is for when you are running SurrealDB as a separate docker container, which is the method described here (and our recommended method).
SURREAL_URL="ws://surrealdb:8000/rpc"
SURREAL_USER="root"
SURREAL_PASSWORD="root"
SURREAL_NAMESPACE="open_notebook"
SURREAL_DATABASE="open_notebook"
If ON is running in docker and SurrealDB is on your host machine, you need to point to it.
SURREAL_URL="ws://your-machine-ip:8000/rpc" #or host.docker.internal
SURREAL_USER="root"
SURREAL_PASSWORD="root"
SURREAL_NAMESPACE="open_notebook"
SURREAL_DATABASE="open_notebook"
If you are running both services locally or if you are using the deprecated single container setup
SURREAL_URL="ws://localhost:8000/rpc"
SURREAL_USER="root"
SURREAL_PASSWORD="root"
SURREAL_NAMESPACE="open_notebook"
SURREAL_DATABASE="open_notebook"
You can have multiple namespaces in one SurrealDB instance and you can also have multiple databases in one instance. So, if you want to setup multiple open noteobok deployments for different users, you don't need to deploy multiple databases.