2019-02-28 18:59:52 +00: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
|
2020-06-26 01:30:29 +00:00
|
|
|
# echo "https://example.com" | docker-compose run archivebox archivebox add
|
|
|
|
# docker-compose run archivebox archivebox https://example.com/some/feed.rss
|
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:
|
|
|
|
build: .
|
2020-06-25 21:46:11 +00:00
|
|
|
image: 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-21 16:16:29 +00:00
|
|
|
# nginx:
|
|
|
|
# image: nginx:alpine
|
|
|
|
# ports:
|
|
|
|
# - 443:443
|
|
|
|
# - 80:80
|
|
|
|
# volumes:
|
|
|
|
# - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
# - ./data:/var/www
|