1
0
Fork 0
archivebox/docker-compose.yml

87 lines
2.7 KiB
YAML
Raw Normal View History

# Usage:
# docker-compose up -d
2020-07-28 16:15:09 -04:00
# docker-compose run archivebox init
2020-06-25 21:30:29 -04:00
# echo "https://example.com" | docker-compose run archivebox archivebox add
2020-07-28 16:14:54 -04:00
# docker-compose run archivebox add --depth=1 https://example.com/some/feed.rss
# docker-compose run archivebox config --set PUBLIC_INDEX=True
# Documentation:
2020-11-23 02:04:39 -05:00
# https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose
2020-06-25 17:46:11 -04:00
version: '3.7'
2019-01-16 09:20:15 -05:00
services:
archivebox:
2020-07-28 08:14:50 -04:00
# build: .
image: ${DOCKER_IMAGE:-archivebox/archivebox:latest}
2020-06-25 21:30:29 -04:00
command: server 0.0.0.0:8000
2019-01-16 09:20:15 -05:00
stdin_open: true
tty: true
2020-07-21 12:16:29 -04:00
ports:
- 8000:8000
2019-01-16 09:20:15 -05:00
environment:
2020-06-25 17:46:11 -04:00
- USE_COLOR=True
2019-01-16 09:20:15 -05:00
- SHOW_PROGRESS=False
2020-11-20 10:29:28 -05:00
- SEARCH_BACKEND_HOST_NAME=sonic
2019-01-16 09:20:15 -05:00
volumes:
- ./data:/data
2020-11-20 10:29:28 -05:00
depends_on:
- sonic
sonic:
image: valeriansaliou/sonic:v1.3.0
ports:
- 1491:1491
volumes:
- ./etc/sonic/config.cfg:/etc/sonic.cfg
- ./data:/var/lib/sonic/store/
2019-01-16 09:20:15 -05:00
# 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