mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 20:10:07 +00:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# Instructions on how to use the different compose profiles
|
|
# 1. Run `docker compose --profile single up` to start the app and database on the same container
|
|
# 2. Run `docker compose --profile multi up` to start the multi container with app and database separate
|
|
# 3. Run `docker compose --profile db_only up` to start the database only -- useful if developing locally
|
|
services:
|
|
surrealdb:
|
|
image: surrealdb/surrealdb:v2
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./surreal_data:/mydata
|
|
environment:
|
|
- SURREAL_EXPERIMENTAL_GRAPHQL=true
|
|
command: start --log info --user root --pass root rocksdb:/mydata/mydatabase.db
|
|
pull_policy: always
|
|
user: root
|
|
profiles: [db_only, multi]
|
|
open_notebook:
|
|
image: lfnovo/open_notebook:latest
|
|
ports:
|
|
- "8080:8502"
|
|
env_file:
|
|
- ./docker.env
|
|
depends_on:
|
|
- surrealdb
|
|
pull_policy: always
|
|
profiles: [multi]
|
|
volumes:
|
|
- ./notebook_data:/app/data
|
|
open_notebook_single:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.single
|
|
ports:
|
|
- "8080:8502"
|
|
profiles:
|
|
- single
|
|
volumes:
|
|
- ./.docker_data/data:/app/data
|
|
- ./docker2.env:/app/.env
|
|
- ./google-credentials.json:/app/google-credentials.json
|