forked from lfnovo/open-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-single.yml
More file actions
24 lines (24 loc) · 835 Bytes
/
Copy pathdocker-compose-single.yml
File metadata and controls
24 lines (24 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
open_notebook_single:
# image: lfnovo/open_notebook:v1-latest-single
build:
context: .
dockerfile: Dockerfile
target: single
ports:
- "8502:8502" # Next.js Frontend
- "5055:5055" # REST API
env_file:
- ./docker.env
environment:
# Override for single-container mode: SurrealDB runs on localhost inside the same container
- SURREAL_URL=ws://localhost:8000/rpc
volumes:
- ./notebook_data:/app/data # Application data
- ./surreal_single_data:/mydata # SurrealDB data
restart: always
# Single container includes all services: SurrealDB, API, Worker, and Next.js Frontend
# Access:
# - Next.js UI: http://localhost:8502
# - REST API: http://localhost:5055
# - API Documentation: http://localhost:5055/docs