2022-01-24 04:44:38 +00:00
|
|
|
version: "3.9"
|
|
|
|
services:
|
2022-01-24 05:14:01 +00:00
|
|
|
server:
|
2022-08-03 23:17:01 +00:00
|
|
|
image: ghcr.io/debanjum/khoj:latest
|
2022-01-24 04:44:38 +00:00
|
|
|
ports:
|
2022-01-24 19:10:18 +00:00
|
|
|
# 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
|
2022-01-24 04:44:38 +00:00
|
|
|
- "8000:8000"
|
2022-01-24 19:10:18 +00:00
|
|
|
working_dir: /app
|
2022-01-24 04:44:38 +00:00
|
|
|
volumes:
|
2022-01-24 19:10:18 +00:00
|
|
|
- .:/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.
|
2022-08-04 19:29:57 +00:00
|
|
|
- ./tests/data/org/:/data/org/
|
2022-01-29 06:32:12 +00:00
|
|
|
- ./tests/data/images/:/data/images/
|
|
|
|
- ./tests/data/ledger/:/data/ledger/
|
|
|
|
- ./tests/data/music/:/data/music/
|
2022-07-21 17:54:30 +00:00
|
|
|
- ./tests/data/markdown/:/data/markdown/
|
2022-01-29 06:32:12 +00:00
|
|
|
# Embeddings and models are populated after the first run
|
|
|
|
# You can set these volumes to point to empty directories on host
|
2022-01-29 08:24:02 +00:00
|
|
|
- ./tests/data/embeddings/:/data/embeddings/
|
2022-01-29 06:32:12 +00:00
|
|
|
- ./tests/data/models/:/data/models/
|
2022-01-24 19:10:18 +00:00
|
|
|
# Use 0.0.0.0 to explicitly set the host ip for the service on the container. https://pythonspeed.com/articles/docker-connection-refused/
|
2022-08-04 19:40:16 +00:00
|
|
|
command: --host="0.0.0.0" --port=8000 -c=config/khoj_docker.yml -vv
|