1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-09-02 10:53:15 +02:00

Updated Docker (markdown)

Nick Sweeting
2019-01-16 09:26:31 -05:00
parent 1833fea87e
commit 353c1c99b6

@@ -4,37 +4,8 @@ If you don't already have docker installed, follow the official install instruct
# Docker Compose # Docker Compose
Here's an example `docker-compose.yml` config: An example `docker-compose.yml` config is included in the project root. You can edit it as you see fit, or just run the default setup with archivebox + nginx as it comes out of the box:
```yml
version: '3'
services:
archivebox:
build: .
stdin_open: true
tty: true
environment:
- FETCH_SCREENSHOT=False
- FETCH_PDF=False
- FETCH_DOM=False
- FETCH_MEDIA=False
- USE_COLOR=False
- SHOW_PROGRESS=False
volumes:
- ./data:/data
command: bash -c 'echo "https://example.com" | /usr/bin/archive; tail -f /dev/null'
nginx:
image: 'nginx'
ports:
- '8098:80'
volumes:
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./data:/var/www
```
The above example is already included in the repo, so you can run it easily straight from the git directory:
```bash ```bash
cd /path/to/ArchiveBox cd /path/to/ArchiveBox
docker-compose up -d docker-compose up -d