diff --git a/docker/server/README.md b/docker/server/README.md index 9b5162f..3ca259b 100644 --- a/docker/server/README.md +++ b/docker/server/README.md @@ -27,6 +27,8 @@ Build an image for an ARM based GNU/Linux: docker build . -t kiwix/kiwix-serve:latest --build-arg ARCH="arm32v7/" ``` +You can also deploy kiwix with [`docker-compose`](https://docs.docker.com/compose/). Check out a sample at [docker-compose.yml.example](docker-compose.yml.example) + Screenshots ----------- diff --git a/docker/server/docker-compose.yml.example b/docker/server/docker-compose.yml.example new file mode 100644 index 0000000..6b3a80d --- /dev/null +++ b/docker/server/docker-compose.yml.example @@ -0,0 +1,14 @@ +version: '3.3' +services: + kiwix-serve: + ports: + - 8080:80 + image: kiwix/kiwix-serve + # uncomment next 4 lines to use it with local zim file in /tmp/zim + # volumes: + # - /tmp/zim:/data + # command: + # - *.zim + # uncomment next 2 lines to use it with remote zim file + # environment: + # - 'DOWNLOAD=https://download.kiwix.org/zim/wikipedia_bm_all.zim'