This is a server for indexing and searching fb2-books at zip archives.
-
Put your archives with books into
books
folder -
Build books index:
docker run --rm -t --entrypoint=build_index \
-v $(pwd)/cfg.yml:/configs/app.override.yml:ro \
-v $(pwd)/books:/var/libs/default:ro \
-v $(pwd)/index:/var/index:rw \
-v $(pwd)/db:/var/db:rw \
-v $(pwd)/logs:/var/logs:rw \
egnd/fb2lib
- Build books summary:
docker run --rm -t --entrypoint=build_summary \
-v $(pwd)/cfg.yml:/configs/app.override.yml:ro \
-v $(pwd)/db:/var/db:rw \
-v $(pwd)/logs:/var/logs:rw \
egnd/fb2lib
- Create
docker-compose.yml
:
version: "3.8"
services:
app:
image: egnd/fb2lib
ports:
- 80:8080
volumes:
- ./cfg.yml:/configs/app.override.yml:ro
- ./libs/default:/var/libs/default:ro
- ./index:/var/index:rw
- ./db:/var/db:rw
- Run server with:
docker-compose up
- Server is available at http://localhost
- Advanced query language - https://blevesearch.com/docs/Query-String-Query/