From 78b5053f24f981b19afdd6b85da4d91f8a85056f Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 2 Feb 2021 16:11:37 +0800 Subject: [PATCH] add archivebox --- README.md | 1 + archivebox/README.md | 8 +++++++ archivebox/docker-compose.yml | 44 +++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 archivebox/README.md create mode 100644 archivebox/docker-compose.yml diff --git a/README.md b/README.md index caf2651..d365597 100644 --- a/README.md +++ b/README.md @@ -281,6 +281,7 @@ A collection of delicious docker recipes. ## 3rd-party (sorted by basename) +- [x] archivebox/archivebox - [x] docker.bintray.io/jfrog/artifactory-oss - [x] tutum/builder - [x] browserless/chrome diff --git a/archivebox/README.md b/archivebox/README.md new file mode 100644 index 0000000..8dab8ff --- /dev/null +++ b/archivebox/README.md @@ -0,0 +1,8 @@ +archivebox +========== + +[ArchiveBox][1] is a powerful self-hosted internet archiving solution written +in Python. You feed it URLs of pages you want to archive, and it saves them to +disk in a variety of formats depending on setup and content within. + +[1]: https://github.com/ArchiveBox/ArchiveBox diff --git a/archivebox/docker-compose.yml b/archivebox/docker-compose.yml new file mode 100644 index 0000000..277603c --- /dev/null +++ b/archivebox/docker-compose.yml @@ -0,0 +1,44 @@ +# +# Usage: +# docker-compose up -d +# docker-compose run --rm archivebox init +# docker-compose run --rm archivebox manage createsuperuser +# docker-compose run --rm archivebox add 'https://example.com' +# docker-compose run --rm archivebox add --depth=1 https://example.com/some/feed.rss +# docker-compose run --rm archivebox config --set PUBLIC_INDEX=True +# +# Documentation: +# https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose +# + +version: "3.8" + +services: + + archivebox: + image: archivebox/archivebox + command: server 0.0.0.0:8000 + ports: + - "8000:8000" + environment: + - USE_COLOR=True + - SHOW_PROGRESS=False + - SEARCH_BACKEND_ENGINE=sonic + - SEARCH_BACKEND_HOST_NAME=sonic + - SEARCH_BACKEND_PASSWORD=SecretPassword + volumes: + - ./data/archivebox:/data + depends_on: + - sonic + restart: unless-stopped + + sonic: + image: valeriansaliou/sonic:v1.3.0 + ports: + - "1491:1491" + environment: + - SEARCH_BACKEND_PASSWORD=SecretPassword + volumes: + - ./data/sonic/config.cfg:/etc/sonic.cfg + - ./data/archivebox:/var/lib/sonic/store/ + restart: unless-stopped