mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-09-02 02:42:38 +02:00
Created Docker (markdown)
35
Docker.md
Normal file
35
Docker.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
Make sure you have Docker installed and set up:
|
||||||
|
|
||||||
|
If you don't already have docker installed, follow the official install instructions for Linux, macOS, or Windows https://docs.docker.com/install/#supported-platforms.
|
||||||
|
|
||||||
|
# Docker Compose
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
|
||||||
|
1. Fetch and build the ArchiveBox Docker image:
|
||||||
|
```bash
|
||||||
|
docker build github.com/pirate/ArchiveBox -t archivebox
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Create a volume to hold your ArchiveBox data:
|
||||||
|
```bash
|
||||||
|
docker volume create archivebox-data
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Run ArchiveBox with `docker run` to add links to your archive:
|
||||||
|
|
||||||
|
To add a list of pages via URL of a feed.
|
||||||
|
```bash
|
||||||
|
docker run -v archivebox-data:/data archivebox 'https://example.com/some/rss/feed.xml'
|
||||||
|
```
|
||||||
|
|
||||||
|
To add a single link or a list of links from a file, pipe them in via stdin.
|
||||||
|
```bash
|
||||||
|
echo 'https://example.com' | docker run -i -v archivebox-data:/data archivebox
|
||||||
|
# or
|
||||||
|
cat bookmarks.html | docker run -i -v archivebox-data:/data archivebox
|
||||||
|
```
|
Reference in New Issue
Block a user