2019-03-01 07:59:52 +13:00
|
|
|
# Usage:
|
2021-04-06 15:17:07 +12:00
|
|
|
# docker-compose run archivebox init --setup
|
|
|
|
# docker-compose up
|
2020-06-26 13:30:29 +12:00
|
|
|
# echo "https://example.com" | docker-compose run archivebox archivebox add
|
2020-07-29 08:14:54 +12:00
|
|
|
# docker-compose run archivebox add --depth=1 https://example.com/some/feed.rss
|
|
|
|
# docker-compose run archivebox config --set PUBLIC_INDEX=True
|
2021-04-08 14:50:18 +12:00
|
|
|
# docker-compose run archivebox help
|
2019-03-01 07:59:52 +13:00
|
|
|
# Documentation:
|
2020-11-23 20:04:39 +13:00
|
|
|
# https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose
|
2019-03-01 07:59:52 +13:00
|
|
|
|
2021-04-06 15:22:05 +12:00
|
|
|
version: '2.4'
|
2019-01-17 03:20:15 +13:00
|
|
|
|
|
|
|
services:
|
|
|
|
archivebox:
|
2021-02-16 08:53:03 +13:00
|
|
|
# build: . # for developers working on archivebox
|
2021-04-06 15:17:07 +12:00
|
|
|
image: ${DOCKER_IMAGE:-archivebox/archivebox:latest}
|
2021-02-16 08:52:10 +13:00
|
|
|
command: server --quick-init 0.0.0.0:8000
|
2020-07-22 04:16:29 +12:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
2019-01-17 03:20:15 +13:00
|
|
|
environment:
|
2021-02-16 19:26:26 +13:00
|
|
|
- ALLOWED_HOSTS=* # add any config options you want as env vars
|
|
|
|
- MEDIA_MAX_SIZE=750m
|
2021-02-16 08:52:37 +13:00
|
|
|
# - SEARCH_BACKEND_ENGINE=sonic # uncomment these if you enable sonic below
|
2021-02-16 07:38:32 +13:00
|
|
|
# - SEARCH_BACKEND_HOST_NAME=sonic
|
|
|
|
# - SEARCH_BACKEND_PASSWORD=SecretPassword
|
2019-01-17 03:20:15 +13:00
|
|
|
volumes:
|
|
|
|
- ./data:/data
|
2021-02-16 08:52:37 +13:00
|
|
|
# - ./archivebox:/app/archivebox # for developers working on archivebox
|
2021-04-06 15:17:07 +12:00
|
|
|
|
2021-04-02 06:06:27 +13:00
|
|
|
# To run the Sonic full-text search backend, first download the config file to sonic.cfg
|
2021-04-10 23:42:16 +12:00
|
|
|
# curl -O https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/etc/sonic.cfg
|
2021-04-06 15:24:12 +12:00
|
|
|
# after starting, backfill any existing Snapshots into the index: docker-compose run archivebox update --index-only
|
2021-02-16 07:38:32 +13:00
|
|
|
# sonic:
|
2021-04-10 23:42:16 +12:00
|
|
|
# image: valeriansaliou/sonic:v1.3.0
|
|
|
|
# expose:
|
|
|
|
# - 1491
|
|
|
|
# environment:
|
|
|
|
# - SEARCH_BACKEND_PASSWORD=SecretPassword
|
|
|
|
# volumes:
|
|
|
|
# - ./sonic.cfg:/etc/sonic.cfg:ro
|
|
|
|
# - ./data/sonic:/var/lib/sonic/store
|
2021-02-16 07:38:32 +13:00
|
|
|
|
2020-07-30 10:37:34 +12:00
|
|
|
|
2021-02-16 07:38:32 +13:00
|
|
|
### Optional Addons: tweak these examples as needed for your specific use case
|
2020-07-30 10:37:34 +12:00
|
|
|
|
2020-07-30 11:48:56 +12:00
|
|
|
# Example: Run scheduled imports in a docker instead of using cron on the
|
|
|
|
# host machine, add tasks and see more info with archivebox schedule --help
|
|
|
|
# scheduler:
|
2020-11-23 20:20:01 +13:00
|
|
|
# image: archivebox/archivebox:latest
|
2020-08-19 10:32:11 +12:00
|
|
|
# command: schedule --foreground --every=day --depth=1 'https://getpocket.com/users/USERNAME/feed/all'
|
2020-07-30 11:48:56 +12:00
|
|
|
# environment:
|
|
|
|
# - USE_COLOR=True
|
|
|
|
# - SHOW_PROGRESS=False
|
|
|
|
# volumes:
|
|
|
|
# - ./data:/data
|
2021-04-06 15:17:07 +12:00
|
|
|
|
2020-07-30 10:37:34 +12:00
|
|
|
# Example: Put Nginx in front of the ArchiveBox server for SSL termination
|
|
|
|
# nginx:
|
|
|
|
# image: nginx:alpine
|
|
|
|
# ports:
|
|
|
|
# - 443:443
|
|
|
|
# - 80:80
|
|
|
|
# volumes:
|
|
|
|
# - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
# - ./data:/var/www
|
|
|
|
|
2020-07-30 11:48:56 +12:00
|
|
|
# Example: run all your ArchiveBox traffic through a WireGuard VPN tunnel
|
2020-07-30 10:37:34 +12:00
|
|
|
# wireguard:
|
|
|
|
# image: linuxserver/wireguard
|
|
|
|
# network_mode: 'service:archivebox'
|
|
|
|
# cap_add:
|
|
|
|
# - NET_ADMIN
|
|
|
|
# - SYS_MODULE
|
|
|
|
# sysctls:
|
|
|
|
# - net.ipv4.conf.all.rp_filter=2
|
|
|
|
# - net.ipv4.conf.all.src_valid_mark=1
|
|
|
|
# volumes:
|
|
|
|
# - /lib/modules:/lib/modules
|
|
|
|
# - ./wireguard.conf:/config/wg0.conf:ro
|
2021-04-06 15:17:07 +12:00
|
|
|
|
2020-07-30 10:37:34 +12:00
|
|
|
# Example: Run PYWB in parallel and auto-import WARCs from ArchiveBox
|
2020-07-28 22:01:06 +12:00
|
|
|
# pywb:
|
|
|
|
# image: webrecorder/pywb:latest
|
|
|
|
# entrypoint: /bin/sh 'wb-manager add default /archivebox/archive/*/warc/*.warc.gz; wayback --proxy;'
|
|
|
|
# environment:
|
|
|
|
# - INIT_COLLECTION=archivebox
|
|
|
|
# ports:
|
|
|
|
# - 8080:8080
|
|
|
|
# volumes:
|
|
|
|
# ./data:/archivebox
|
|
|
|
# ./data/wayback:/webarchive
|