2019-02-28 13:59:52 -05:00
|
|
|
# This docker-compose config for ArchiveBox runs the following containers:
|
|
|
|
# - ArchiveBox (it creates the initial archive, then sleeps forever to allow commands to be run with exec to add links)
|
|
|
|
# - nginx webserver running on https://127.0.0.1:8098
|
|
|
|
# Usage:
|
|
|
|
# docker-compose up -d
|
|
|
|
# echo "https://example.com" | docker-compose exec -T archivebox /bin/archive
|
|
|
|
# docker-compose exec archivebox /bin/archive https://example.com/some/feed.rss
|
|
|
|
# Documentation:
|
|
|
|
# https://github.com/pirate/ArchiveBox/wiki/Docker#docker-compose
|
|
|
|
|
2019-01-16 09:20:15 -05:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
archivebox:
|
|
|
|
build: .
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2019-02-28 13:59:52 -05:00
|
|
|
# env_file: path/to/your/ArchiveBox.conf
|
2019-01-16 09:20:15 -05:00
|
|
|
environment:
|
|
|
|
- USE_COLOR=False
|
|
|
|
- SHOW_PROGRESS=False
|
|
|
|
volumes:
|
|
|
|
- ./data:/data
|
2019-01-29 19:55:50 -05:00
|
|
|
command: bash -c 'echo "https://github.com/pirate/ArchiveBox" | /bin/archive; tail -f /dev/null'
|
2019-01-16 09:20:15 -05:00
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: 'nginx'
|
|
|
|
ports:
|
|
|
|
- '8098:80'
|
|
|
|
volumes:
|
|
|
|
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ./data:/var/www
|