|
|
|
|
@ -9,14 +9,23 @@ With local ZIM file(s)
|
|
|
|
|
* Given `wikipedia.zim` and `wiktionary.zim` reside in `/tmp/zim/`, execute the following:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker run -v /tmp/zim:/data -p 8080:80 kiwix/kiwix-serve wikipedia.zim wiktionary.zim
|
|
|
|
|
docker run -v /tmp/zim:/data -p 8080:8080 kiwix/kiwix-serve wikipedia.zim wiktionary.zim
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
With remote ZIM file
|
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
docker run -e "DOWNLOAD=https://download.kiwix.org/zim/wikipedia_bm_all.zim" -p 8080:80 kiwix/kiwix-serve
|
|
|
|
|
docker run -e "DOWNLOAD=https://download.kiwix.org/zim/wikipedia_bm_all.zim" -p 8080:8080 kiwix/kiwix-serve
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Change default port
|
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
|
|
You can change port to expose with environment PORT, useful if running on Podman, K8s or OpenShift
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
podman run -e "DOWNLOAD=https://download.kiwix.org/zim/wikipedia_bm_all.zim" -e PORT=8888 -p 8080:8888 kiwix/kiwix-serve
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
ARM
|
|
|
|
|
|