update docker compose

This commit is contained in:
LUIS NOVO 2024-10-22 19:37:54 -03:00
parent 7389ca610a
commit b60cee2cc2

View file

@ -20,28 +20,35 @@ poetry install
poetry run streamlit run app_home.py poetry run streamlit run app_home.py
``` ```
or with docker: or with Docker/Portainer:
```yaml ```yaml
version: '3'
services: services:
surrealdb: surrealdb:
image: surrealdb/surrealdb:v2 image: surrealdb/surrealdb:v2
ports: ports:
- "8000:8000" - "8000:8000"
volumes: volumes:
- ./surreal-data:/mydata - surreal_data:/mydata
user: "${UID}:${GID}" command: start --log trace --user root --pass root rocksdb:/mydata/mydatabase.db
command: start --log trace --user root --pass root rocksdb:mydatabase.db
pull_policy: always pull_policy: always
user: root
open_notebook: open_notebook:
image: lfnovo/open_notebook:latest image: lfnovo/open_notebook:latest
ports: ports:
- "8080:8502" - "8502:8502"
volumes: env_file:
- ./docker.env:/app/.env - ./docker.env
depends_on: depends_on:
- surrealdb - surrealdb
pull_policy: always pull_policy: always
volumes:
surreal_data:
``` ```