Update README and default folders in docker_sample_config.yml

- Add instruction to using Docker with README
- Use the ./tests/data folder in docker_sample_conifg.yml so it can work right away for users
This commit is contained in:
Saba
2022-01-28 23:20:50 -05:00
parent 52e701b3c2
commit 1ba7fa66e5
2 changed files with 66 additions and 36 deletions

View File

@@ -20,13 +20,13 @@ services:
# points to the files you want to index.
# The path of the mounted directory (right hand side),
# must match the path prefix in your config file.
- /path/to/notes/:/data/notes/
- /path/to/photos/:/data/images/
- /path/to/ledger/:/data/ledger/
- /path/to/music/:/data/music/
- ./tests/data/:/data/notes/
- ./tests/data/:/data/images/
- ./tests/data/:/data/ledger/
- ./tests/data/:/data/music/
# It's ok if you don't have existing embeddings.
# Leave the line as is - an empty volume will be created if it doesn't exist.
- /path/to/embeddings/:/data/generated/
# You can set this volume to point to an empty folder.
- ./tests/data/:/data/generated/
# Use 0.0.0.0 to explicitly set the host ip for the service on the container. https://pythonspeed.com/articles/docker-connection-refused/
command: --host="0.0.0.0" --port=8000 -c=docker_sample_config.yml
command: --host="0.0.0.0" --port=8000 -c=docker_sample_config.yml -vv