mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-18 00:54:26 -04:00
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 \
|
&& apt-get install -qq -y --no-install-recommends \
|
||||||
build-essential python-dev python3-dev \
|
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 \
|
&& 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 purge -y build-essential python-dev python3-dev \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
@ -21,10 +21,23 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- USE_COLOR=True
|
- USE_COLOR=True
|
||||||
- SHOW_PROGRESS=False
|
- SHOW_PROGRESS=False
|
||||||
|
- SEARCH_BACKEND_ENGINE=sonic
|
||||||
|
- SEARCH_BACKEND_HOST_NAME=sonic
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./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
|
# Optional Addons: tweak these examples as needed for your specific use case
|
||||||
|
|
||||||
|
@ -74,14 +87,4 @@ services:
|
||||||
# volumes:
|
# volumes:
|
||||||
# ./data:/archivebox
|
# ./data:/archivebox
|
||||||
# ./data/wayback:/webarchive
|
# ./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…
Add table
Add a link
Reference in a new issue