diff --git a/Dockerfile b/Dockerfile index 20a410e2..b81f9f49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -77,6 +77,7 @@ RUN apt-get update -qq \ && apt-get install -qq -y --no-install-recommends \ build-essential python-dev python3-dev \ && grep -B 1000 -E '^$' "$CODE_DIR/pip_dist/archivebox.egg-info/requires.txt" | pip install --quiet -r /dev/stdin \ + && pip install --quiet "sonic-client==0.0.5" \ && apt-get purge -y build-essential python-dev python3-dev \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* diff --git a/docker-compose.yml b/docker-compose.yml index c76f734a..1b761d63 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,10 +21,23 @@ services: environment: - USE_COLOR=True - SHOW_PROGRESS=False + - SEARCH_BACKEND_ENGINE=sonic + - SEARCH_BACKEND_HOST_NAME=sonic volumes: - ./data:/data + depends_on: + - sonic - + # Run sonic search backend + sonic: + image: valeriansaliou/sonic:v1.3.0 + ports: + - 1491:1491 + environment: + - SEARCH_BACKEND_PASSWORD=SecretPassword + volumes: + - ./etc/sonic/config.cfg:/etc/sonic.cfg + - ./data:/var/lib/sonic/store/ # Optional Addons: tweak these examples as needed for your specific use case @@ -74,14 +87,4 @@ services: # volumes: # ./data:/archivebox # ./data/wayback:/webarchive - - # Example: Run sonic search backend - # sonic: - # image: valeriansaliou/sonic:v1.3.0 - # ports: - # - 1491:1491 - # environment: - # - SEARCH_BACKEND_PASSWORD=SecretPassword - # volumes: - # - ./etc/sonic/config.cfg:/etc/sonic.cfg - # - ./data:/var/lib/sonic/store/ \ No newline at end of file +