Merge pull request #573 from jdcaballerov/patch-2
This commit is contained in:
commit
876c269513
2 changed files with 16 additions and 12 deletions
|
@ -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/*
|
||||
|
|
|
@ -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/
|
||||
|
||||
|
|
Loading…
Reference in a new issue