ArchiveBox/docker-compose.yml

92 lines
3.4 KiB
YAML
Raw Normal View History

# Usage:
# docker-compose run archivebox init --setup
# docker-compose up
2020-06-26 01:30:29 +00:00
# echo "https://example.com" | docker-compose run archivebox archivebox add
2020-07-28 20:14:54 +00: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 02:50:18 +00:00
# docker-compose run archivebox help
# Documentation:
2020-11-23 07:04:39 +00:00
# https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose
version: '2.4'
2019-01-16 14:20:15 +00:00
services:
archivebox:
# build: . # for developers working on archivebox
2021-04-24 11:27:52 +00:00
image: ${DOCKER_IMAGE:-archivebox/archivebox:0.6.2}
command: server --quick-init 0.0.0.0:8000
2020-07-21 16:16:29 +00:00
ports:
- 8000:8000
2019-01-16 14:20:15 +00:00
environment:
2021-02-16 06:26:26 +00:00
- ALLOWED_HOSTS=* # add any config options you want as env vars
- MEDIA_MAX_SIZE=750m
# - SEARCH_BACKEND_ENGINE=sonic # uncomment these if you enable sonic below
# - SEARCH_BACKEND_HOST_NAME=sonic
# - SEARCH_BACKEND_PASSWORD=SecretPassword
2019-01-16 14:20:15 +00:00
volumes:
- ./data:/data
# - ./archivebox:/app/archivebox # for developers working on archivebox
2021-04-01 17:06:27 +00:00
# To run the Sonic full-text search backend, first download the config file to sonic.cfg
2021-04-10 11:42:16 +00:00
# curl -O https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/etc/sonic.cfg
# after starting, backfill any existing Snapshots into the index: docker-compose run archivebox update --index-only
# sonic:
2021-04-10 11:42:16 +00: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
### Optional Addons: tweak these examples as needed for your specific use case
# 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:
# image: archivebox/archivebox:latest
# command: schedule --foreground --every=day --depth=1 'https://getpocket.com/users/USERNAME/feed/all'
# environment:
# - USE_COLOR=True
# - SHOW_PROGRESS=False
# volumes:
# - ./data:/data
# 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
# Example: run all your ArchiveBox traffic through a WireGuard VPN tunnel
# 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
# Example: Run PYWB in parallel and auto-import WARCs from ArchiveBox
# 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