Simple containerized grab-site.
- Webinterface will be exposed to port 29000
- Grab'ed sites will be saved in /data
Because our gs-server resides inside a docker container, grab-site must also be run inside the docker container. Rather than running grab-site 'URL'
, you should run docker exec grab-site-container grab-site 'URL'
so that grab-site 'URL'
is ran inside the container.
docker run -d --rm -p29000:29000 -v /path/to/data:/data --name grab-site-container nold360/grab-site
The following command will run grab-site against our test URL, inside the docker container, in detached mode (in the background).
docker exec -d grab-site-container grab-site --my-grab-site-options https://example.com
version: '3'
services:
grab-site:
image: nold360/grab-site
ports:
- 29000:29000
volumes:
- ./data:/data
restart: unless-stopped
docker-compose up -d --remove-orphans
docker-compose exec grab-site grab-site https://example.com