2019-02-28 18:59:52 +00:00
|
|
|
# Usage:
|
|
|
|
# docker-compose up -d
|
2020-07-28 20:15:09 +00:00
|
|
|
# docker-compose run archivebox init
|
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
|
2019-02-28 18:59:52 +00:00
|
|
|
# Documentation:
|
|
|
|
# https://github.com/pirate/ArchiveBox/wiki/Docker#docker-compose
|
|
|
|
|
2020-06-25 21:46:11 +00:00
|
|
|
version: '3.7'
|
2019-01-16 14:20:15 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
archivebox:
|
2020-07-28 12:14:50 +00:00
|
|
|
# build: .
|
2020-09-22 18:58:01 +00:00
|
|
|
image: ${DOCKER_IMAGE:-nikisweeting/archivebox:latest}
|
2020-06-26 01:30:29 +00:00
|
|
|
command: server 0.0.0.0:8000
|
2019-01-16 14:20:15 +00:00
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2020-07-21 16:16:29 +00:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
2019-01-16 14:20:15 +00:00
|
|
|
environment:
|
2020-06-25 21:46:11 +00:00
|
|
|
- USE_COLOR=True
|
2019-01-16 14:20:15 +00:00
|
|
|
- SHOW_PROGRESS=False
|
|
|
|
volumes:
|
|
|
|
- ./data:/data
|
|
|
|
|
2020-07-29 22:37:34 +00:00
|
|
|
|
2020-07-29 23:48:56 +00:00
|
|
|
# Optional Addons: tweak these examples as needed for your specific use case
|
2020-07-29 22:37:34 +00:00
|
|
|
|
2020-07-29 23:48:56 +00: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:
|
|
|
|
# image: nikisweeting/archivebox:latest
|
2020-08-18 22:32:11 +00:00
|
|
|
# command: schedule --foreground --every=day --depth=1 'https://getpocket.com/users/USERNAME/feed/all'
|
2020-07-29 23:48:56 +00:00
|
|
|
# environment:
|
|
|
|
# - USE_COLOR=True
|
|
|
|
# - SHOW_PROGRESS=False
|
|
|
|
# volumes:
|
|
|
|
# - ./data:/data
|
|
|
|
|
2020-07-29 22:37:34 +00: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-29 23:48:56 +00:00
|
|
|
# Example: run all your ArchiveBox traffic through a WireGuard VPN tunnel
|
2020-07-29 22:37:34 +00: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
|
|
|
|
|
|
|
|
# Example: Run PYWB in parallel and auto-import WARCs from ArchiveBox
|
2020-07-28 10:01:06 +00: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
|