1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/archivebox/docker-compose.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

2021-02-02 10:11:37 +02:00
#
# Usage:
# docker-compose up -d
# docker-compose run --rm archivebox init
# docker-compose run --rm archivebox manage createsuperuser
# docker-compose run --rm archivebox add 'https://example.com'
# docker-compose run --rm archivebox add --depth=1 https://example.com/some/feed.rss
# docker-compose run --rm archivebox config --set PUBLIC_INDEX=True
#
# Documentation:
# https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose
#
version: "3.8"
services:
archivebox:
image: archivebox/archivebox
command: server 0.0.0.0:8000
ports:
- "8000:8000"
environment:
- USE_COLOR=True
- SHOW_PROGRESS=False
- SEARCH_BACKEND_ENGINE=sonic
- SEARCH_BACKEND_HOST_NAME=sonic
- SEARCH_BACKEND_PASSWORD=SecretPassword
volumes:
- ./data/archivebox:/data
depends_on:
- sonic
restart: unless-stopped
sonic:
image: valeriansaliou/sonic:v1.3.0
ports:
- "1491:1491"
environment:
- SEARCH_BACKEND_PASSWORD=SecretPassword
volumes:
- ./data/sonic/config.cfg:/etc/sonic.cfg
- ./data/archivebox:/var/lib/sonic/store/
restart: unless-stopped