mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-21 13:52:30 +02:00
Updated Docker (markdown)
10
Docker.md
10
Docker.md
@@ -50,12 +50,20 @@ Docker version 18.09.1, build 4c52b90 # must be >= 17.04.0
|
||||
```bash
|
||||
mkdir archivebox && cd archivebox
|
||||
curl -O https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/docker-compose.yml
|
||||
curl https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/etc/sonic/config.cfg > sonic.cfg
|
||||
docker-compose run archivebox init --setup
|
||||
docker-compose run archivebox add 'https://example.com'
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
If you want to use sonic for full text search, download the sonic config file uncomment the sonic service in your `docker-compose.yml` file:
|
||||
```bash
|
||||
curl https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/master/etc/sonic/config.cfg > sonic.cfg
|
||||
# then uncomment the sonic block in docker-compose.yml
|
||||
|
||||
# to backfill previously added snapshots into the full text index, run:
|
||||
docker-compose run archivebox update --index-only
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
First, make sure you're `cd`'ed into the same folder as your `docker-compose.yml` file (e.g. the project root) and that your containers have been started with `docker-compose up -d`.
|
||||
|
Reference in New Issue
Block a user