Whether you're preparing for the end of the world or simply want all your information at hand even when the internet is unreliable, Kiwix helps you quickly and easily save a copy of the Wiki project you're interested in offline.
Kiwix is a platform that creates compressed versions of websites in the form of individual .zim files. These files are small enough to be stored even on a smartphone, computer, or server.
Go to the Kiwix library, find the version of Wikipedia or any other file that meets your needs, and download it before proceeding to the next step.
Click on "Download - 38.29MB," and a window with download options will pop up.
Method 1: Docker Run
This command allows you to run the Kiwix container without any issues:
docker run -v /home/user/kiwix:/data -p 8080:8080 ghcr.io/kiwix/kiwix-serve '*.zim'
Now, let's break down this command:
Method 2: Docker Compose
An alternative option is to use docker-compose.
Create a YAML file named docker-compose.yml and add the following dаta:
version: '3'
services:
kiwix-serve:
image: ghcr.io/kiwix/kiwix-serve
volumes:
- /home/user/kiwix:/data
ports:
- '8080:8080'
command: '*.zim'
Let's break down the docker-compose.yml file:
Next, run the command:
docker-compose up -d
This will start the Kiwix server in daemon mode on port 8080.
After that, you can use your local Wikipedia. You just need to go to your local IP address in your browser.
If you want a reliable offline knowledge base, Kiwix is a great place to start, especially when you only have an inexpensive single-board computer and half an hour of free time.