- Replace curl-based SurrealDB install in Dockerfile.single with a multi-stage build that copies the binary from surrealdb/surrealdb:v2, aligning it with the version used in docker-compose.yml and preventing breakage when newer SurrealDB versions introduce syntax changes. - Fix SURREAL_PASSWORD documentation in single-container.md: the actual password set in supervisord.single.conf is `root`, not `password`. Closes #498
4.3 KiB
Single Container Installation
All-in-one container setup. Simpler than Docker Compose, but less flexible.
Best for: PikaPods, Railway, shared hosting, minimal setups
Alternative Registry: Images available on both Docker Hub (
lfnovo/open_notebook:v1-latest-single) and GitHub Container Registry (ghcr.io/lfnovo/open-notebook:v1-latest-single).
Note
: While this is a simple way to get started, we recommend Docker Compose for most users. Docker Compose is more flexible and will make it easier if we add more services to the setup in the future. This single-container option is best for platforms that specifically require it (PikaPods, Railway, etc.).
Prerequisites
- Docker installed (for local testing)
- API key from OpenAI, Anthropic, or another provider
- 5 minutes
Quick Setup
For Local Testing (Docker)
# docker-compose.yml
services:
open_notebook:
image: lfnovo/open_notebook:v1-latest-single
pull_policy: always
ports:
- "8502:8502" # Web UI (React frontend)
- "5055:5055" # API
environment:
- OPEN_NOTEBOOK_ENCRYPTION_KEY=change-me-to-a-secret-string
- SURREAL_URL=ws://localhost:8000/rpc
- SURREAL_USER=root
- SURREAL_PASSWORD=root
- SURREAL_NAMESPACE=open_notebook
- SURREAL_DATABASE=open_notebook
volumes:
- ./data:/app/data
restart: always
Run:
docker compose up -d
Access: http://localhost:8502
Then configure your AI provider:
- Go to Settings → API Keys
- Click Add Credential → Select your provider → Paste API key
- Click Save, then Test Connection
- Click Discover Models → Register Models
For Cloud Platforms
PikaPods:
- Click "New App"
- Search "Open Notebook"
- Set environment variables (at minimum:
OPEN_NOTEBOOK_ENCRYPTION_KEY) - Click "Deploy"
- Open the app → Go to Settings → API Keys to configure your AI provider
Railway:
- Create new project
- Add
lfnovo/open_notebook:v1-latest-single - Set environment variables (at minimum:
OPEN_NOTEBOOK_ENCRYPTION_KEY) - Deploy
- Open the app → Go to Settings → API Keys to configure your AI provider
Render:
- Create new Web Service
- Use Docker image:
lfnovo/open_notebook:v1-latest-single - Set environment variables in dashboard (at minimum:
OPEN_NOTEBOOK_ENCRYPTION_KEY) - Configure persistent disk for
/app/dataand/mydata
DigitalOcean App Platform:
- Create new app from Docker Hub
- Use image:
lfnovo/open_notebook:v1-latest-single - Set port to 8502
- Add environment variables (at minimum:
OPEN_NOTEBOOK_ENCRYPTION_KEY) - Configure persistent storage
Heroku:
# Using heroku.yml
heroku container:push web
heroku container:release web
heroku config:set OPEN_NOTEBOOK_ENCRYPTION_KEY=your-secret-key
Coolify:
- Add new service → Docker Image
- Image:
lfnovo/open_notebook:v1-latest-single - Port: 8502
- Add environment variables (at minimum:
OPEN_NOTEBOOK_ENCRYPTION_KEY) - Enable persistent volumes
- Coolify handles HTTPS automatically
Environment Variables
| Variable | Purpose | Example |
|---|---|---|
OPEN_NOTEBOOK_ENCRYPTION_KEY |
Encryption key for credentials (required) | my-secret-key |
SURREAL_URL |
Database | ws://localhost:8000/rpc |
SURREAL_USER |
DB user | root |
SURREAL_PASSWORD |
DB password | root |
SURREAL_NAMESPACE |
DB namespace | open_notebook |
SURREAL_DATABASE |
DB name | open_notebook |
API_URL |
External URL (for remote access) | https://myapp.example.com |
AI provider API keys are configured via the Settings → API Keys UI after deployment.
Limitations vs Docker Compose
| Feature | Single Container | Docker Compose |
|---|---|---|
| Setup time | 2 minutes | 5 minutes |
| Complexity | Minimal | Moderate |
| Services | All bundled | Separated |
| Scalability | Limited | Excellent |
| Memory usage | ~800MB | ~1.2GB |
Next Steps
Same as Docker Compose setup - just access via http://localhost:8502 (local) or your platform's URL (cloud).
- Go to Settings → API Keys to add your AI provider credential
- Test Connection and Discover Models
See Docker Compose for full post-install guide.