ArchiveBox
Posted
The self-hosted internet archiving solution maintained by @pirate.
# file: `docker-compose.yml`
services:
archivebox:
image: ${HONEYPI_IMAGE_REGISTRY_HOST:-docker.io}/archivebox/archivebox:${HONEYPI_ARCHIVEBOX_VERSION:-latest}
container_name: archivebox
volumes:
- ${HONEYPI_DATA}/archivebox/data:/data
ports:
- ${HONEYPI_ARCHIVEBOX_PORT:-8000}:8000
environment:
- ADMIN_USERNAME=${HONEYPI_ARCHIVEBOX_ADMIN_USERNAME:-admin}
- ADMIN_PASSWORD=${HONEYPI_ARCHIVEBOX_ADMIN_PASSWORD}
- CSRF_TRUSTED_ORIGINS=https://${HONEYPI_ARCHIVEBOX_HOST}
- ALLOWED_HOSTS=*
- PUBLIC_INDEX=True
- PUBLIC_SNAPSHOTS=True
- PUBLIC_ADD_VIEW=False
- SEARCH_BACKEND_ENGINE=sonic
- SEARCH_BACKEND_HOST_NAME=${HONEYPI_SONIC_HOST:-sonic}
- SEARCH_BACKEND_PASSWORD=${HONEYPI_SONIC_BACKEND_PASSWORD}
labels:
- traefik.enable=${HONEYPI_ARCHIVEBOX_TRAEFIK_ENABLE:-false}
- traefik.http.routers.archivebox.rule=Host(`${HONEYPI_ARCHIVEBOX_HOST}`)
- traefik.http.routers.archivebox.entrypoints=websecure
- traefik.http.routers.archivebox.tls.certresolver=resolver
- traefik.http.routers.archivebox.service=archivebox
- traefik.http.services.archivebox.loadbalancer.server.port=8000
archivebox-scheduler:
image: ${HONEYPI_IMAGE_REGISTRY_HOST:-docker.io}/archivebox/archivebox:${HONEYPI_ARCHIVEBOX_VERSION:-latest}
container_name: archivebox-scheduler
command: schedule --foreground --update --every=day
volumes:
- ${HONEYPI_DATA}/archivebox/data:/data
environment:
- ADMIN_USERNAME=${HONEYPI_ARCHIVEBOX_ADMIN_USERNAME:-admin}
- ADMIN_PASSWORD=${HONEYPI_ARCHIVEBOX_ADMIN_PASSWORD}
- CSRF_TRUSTED_ORIGINS=https://${HONEYPI_ARCHIVEBOX_HOST}
- ALLOWED_HOSTS=*
- PUBLIC_INDEX=True
- PUBLIC_SNAPSHOTS=True
- PUBLIC_ADD_VIEW=False
- SEARCH_BACKEND_ENGINE=sonic
- SEARCH_BACKEND_HOST_NAME=${HONEYPI_SONIC_HOST:-sonic}
- SEARCH_BACKEND_PASSWORD=${HONEYPI_SONIC_BACKEND_PASSWORD}