mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
343854752c
* Remove GPT4All dependency in pyproject.toml and use multiplatform builds in the dockerization setup in GH actions * Move configure_search method into indexer * Add conditional installation for gpt4all * Add hint to go to localhost:42110 in the docs. Addresses #477
33 lines
1.3 KiB
YAML
33 lines
1.3 KiB
YAML
version: "3.9"
|
|
services:
|
|
server:
|
|
image: ghcr.io/khoj-ai/khoj:latest
|
|
ports:
|
|
# If changing the local port (left hand side), no other changes required.
|
|
# If changing the remote port (right hand side),
|
|
# change the port in the args in the build section,
|
|
# as well as the port in the command section to match
|
|
- "42110:42110"
|
|
working_dir: /app
|
|
volumes:
|
|
- .:/app
|
|
# These mounted volumes hold the raw data that should be indexed for search.
|
|
# The path in your local directory (left hand side)
|
|
# 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.
|
|
- ./tests/data/org/:/data/org/
|
|
- ./tests/data/images/:/data/images/
|
|
- ./tests/data/markdown/:/data/markdown/
|
|
- ./tests/data/pdf/:/data/pdf/
|
|
# Embeddings and models are populated after the first run
|
|
# You can set these volumes to point to empty directories on host
|
|
- ./tests/data/embeddings/:/root/.khoj/content/
|
|
- ./tests/data/models/:/root/.khoj/search/
|
|
- khoj_config:/root/.khoj/
|
|
# 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=42110 -vv
|
|
|
|
|
|
volumes:
|
|
khoj_config:
|