Spaces:
Configuration error
Configuration error
Download docker-compose.yml from letaken-com/Bot2: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/spaces/letaken-com/Bot2/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/letaken-com/Bot2/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/letaken-com/Bot2/resolve/main/docker-compose.yml
1.26 kB
| # 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 | |