Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hexagon6/docker-compose-nginx-markdown

Run Nginx with markdown
https://github.com/hexagon6/docker-compose-nginx-markdown

Last synced: about 1 month ago
JSON representation

Run Nginx with markdown

Awesome Lists containing this project

README

        

# docker compose nginx markdown

This repo provides a docker compose setup for running nginx with a markdown converter called [ngx_markdown_filter_module](https://github.com/ukarim/ngx_markdown_filter_module.git).

## usage

1. clone this repo
2. run `docker compose build`
3. run `docker compose up`
4. go to [http://localhost/](http://localhost/) to see test pages rendered as html. they can be found in `public/` of this repo

## features / non-features

- nginx is compiled without ssl, intended to be used behind a tls-terminated reverse proxy
- markdown (with github flavored markdown syntax) files with .md extension are converted to html with `ngx_markdown_filter_module`.

## running in production

1. modify the volume location inside compose.yml
2. run `docker compose up -d`
3. add .md files to your volume for pages

## why?

I wanted to run [https://nginx-extras.getpagespeed.com/modules/markdown/](https://nginx-extras.getpagespeed.com/modules/markdown/#build-with-cmark-gfm-tables-support) but did not find a compiled version for ubuntu / debian, as I like to use docker compose and went through all the compilation steps I thought maybe someone else could find this useful.

## possible improvements

- Docker image size optimization
- remove downloaded apt cache after package installation
- use separate build & run images