ArchiveBox
Open source self-hosted web archiving
Alternative to: wayback machine, pocket, instapaper, archive.today
ArchiveBox takes URLs from your bookmarks, browser history, or feeds and saves each page as HTML, PDF, screenshots, WARC, and more so it stays readable even after the original disappears. It runs entirely on your own server with a web UI, CLI, and REST API, importing from RSS, Pocket, Pinboard, and browser extensions on a schedule.
ArchiveBox Docker Compose example
Self-host ArchiveBox on your own server, homelab, or VPS starting from this Docker Compose example.
It runs ArchiveBox in Docker containers using the official archivebox/archivebox:stable image, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
archivebox:
image: archivebox/archivebox:stable
# Run the web server; --quick-init sets up the collection/database on first
# start so the app is usable straight from `docker compose up`.
command: server --quick-init 0.0.0.0:8000
restart: unless-stopped
volumes:
- data:/data
environment:
# Hostnames allowed to reach the server. "*" accepts any host; restrict
# this to your domain in production.
ALLOWED_HOSTS: "*"
# Origins trusted for CSRF-protected POSTs (admin login, adding URLs).
# Set to your public URL, e.g. https://archive.example.com.
CSRF_TRUSTED_ORIGINS: "http://localhost:8000"
# Allow anonymous visitors to view the snapshot list. Set to False to
# require login for the index.
PUBLIC_INDEX: "True"
# Allow anonymous visitors to view archived snapshot content.
PUBLIC_SNAPSHOTS: "True"
# Allow anonymous visitors to submit new URLs to archive.
PUBLIC_ADD_VIEW: "False"
# Admin account created on first run. Leave empty to create one later via
# `docker compose run archivebox manage createsuperuser`.
ADMIN_USERNAME: ""
ADMIN_PASSWORD: ""
volumes:
data: Prefer a managed setup? WinterFlow installs, configures, and updates ArchiveBox for you using this same Docker Compose configuration.