This Docker image sets up HTTrack inside a docker container.
HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility.
To use docker-httrack, follow these steps:
-
Clone and start the container:
docker run -p 8080:8080 \ -e DATA=/data \ -v "${PWD}"/data:/data \ docker.io/aguslr/httrack:latest -
Configure your Web browser to connect to HTTrack's web interface with
http://localhost:8080
The image is configured using environment variables passed at runtime:
| Variable | Function | Default | Required |
|---|---|---|---|
DATA |
Path for mirror/logfiles+cache | /var/www/websites |
N |
PORT |
Port for the server to listen on | 8080 | N |
Instead of pulling the image from a remote repository, you can build it locally:
-
Clone the repository:
git clone https://github.com/aguslr/docker-httrack.git -
Change into the newly created directory and use
docker-composeto build and launch the container:cd docker-httrack && docker-compose up --build -d