Skip to content
/ fb2lib Public

This is a server for indexing and searching fb2-books at zip archives.

License

Notifications You must be signed in to change notification settings

egnd/fb2lib

Repository files navigation

fb2lib

Go Reference Go Report Card Coverage Pipeline

This is a server for indexing and searching fb2-books at zip archives.

Quick start:

  1. Put your archives with books into books folder

  2. 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
  1. 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
  1. 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
  1. Run server with:
docker-compose up
  1. Server is available at http://localhost

Hints: