https://github.com/taskbjorn/docker-mkdocs
Docker container for MkDocs - a fast, simple and powerful static site generator geared towards project documentation - based on NGINX.
https://github.com/taskbjorn/docker-mkdocs
docker docker-compose documentation linux nginx static-site-generator
Last synced: about 2 months ago
JSON representation
Docker container for MkDocs - a fast, simple and powerful static site generator geared towards project documentation - based on NGINX.
- Host: GitHub
- URL: https://github.com/taskbjorn/docker-mkdocs
- Owner: taskbjorn
- License: gpl-3.0
- Created: 2023-04-06T21:22:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T21:24:52.000Z (about 3 years ago)
- Last Synced: 2025-01-23T10:16:56.699Z (over 1 year ago)
- Topics: docker, docker-compose, documentation, linux, nginx, static-site-generator
- Language: Python
- Homepage: https://hub.docker.com/taskbjorn/mkdocs
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quick reference
* Maintained by: [taskbjorn](https://github.com/taskbjorn)
* Official Git repository: [docker-mkdocs on GitHub](https://github.com/taskbjorn/docker-mkdocs)
# Supported tags and respective Dockerfile links
* [latest](build/latest/Dockerfile)
# What is `docker-mkdocs`?

`docker-mkdocs` is a minimalist Docker container based on the official NGINX image to build and serve MkDocs static files.
# Running using Docker Compose
Clone this repository to a new folder:
```shell
git clone https://github.com/taskbjorn/docker-mkdocs.git
```
If the MkDocs source files are stored in a private repository, you must provide the access through a private SSH key. In the following, we will assume the private key is stored in a file `id_rsa.ospk` under the home folder of the active user.
```shell
cp ~/id_rsa.ospk ./data/.ssh/
chmod 700 ./data/.ssh
chmod 600 ./data/.ssh/config ./data/.ssh/id_rsa.ospk
sudo chown root:root ./data/.ssh
```
> Note that the `.ssh` folder must be owned by `root` as the container is running under root!
Edit the `docker-compose.yml` file to mount the `.ssh` folder into the container:
```yaml
services:
app:
(...)
environment:
- "GIT_REPOSITORY="
- "GIT_EMAIL="
- "GIT_USERNAME="
volumes:
- ./.ssh/:/root/.ssh
- :/repo
```
Run the compose stack:
```shell
docker-compose up -d
```
# License
This image is licensed under [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html).
As it is often the case with Docker images, some of the software contained in this image (e.g. the base image, software included in the base image, etc.) may be covered under a different license.
Please remember it is your responsibility as the end-user to ensure that your use case complies with the licenses of all included software.