name: ebook-search services: ebook-search: build: context: ../../.. dockerfile: python/ebook_search/docker/Dockerfile image: ebook-search:latest restart: unless-stopped ports: - "${EBOOK_SEARCH_PORT:-8070}:8070" extra_hosts: - "jeeves:192.168.90.40" env_file: - ../../../.env environment: EBOOK_SEARCH_HOST: "0.0.0.0" EBOOK_SEARCH_PORT: "8070" EBOOK_SEARCH_LIBRARY_PATHS: "/library" EBOOK_SEARCH_BM25_INDEX_DIR: "/data/bm25" volumes: - "${EBOOK_LIBRARY_HOST_PATH:-/home/richie/ebooks}:/library:ro" - ebook-search-data:/data healthcheck: test: [ "CMD-SHELL", "curl -fsS http://127.0.0.1:8070/health >/dev/null || exit 1", ] interval: 30s timeout: 5s retries: 5 start_period: 30s volumes: ebook-search-data: