add archivebox

This commit is contained in:
kev 2021-02-02 16:11:37 +08:00
parent 1d106f8599
commit 78b5053f24
3 changed files with 53 additions and 0 deletions

View File

@ -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

8
archivebox/README.md Normal file
View File

@ -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

View File

@ -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