-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 1.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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