Added a lightweight, self-hosted documentation viewer that dinamically serves Markdown files as a reactive HTML site with zero build steps. Features included in this initial release: - Custom Python HTTPServer (`main.py`) for dynamic Markdown-to-HTML rendering - Responsive UI with dark/light mode togles, breadcrumbs, and search filtering - Built-in support for Mermaid.js diagrams, Prism.js syntax highlighting, and GitHub-style alert callouts - Auto-generated sidebar navigation and directory index pages - Updated `appctl` to support the new `docs` service, and mappings to env-vars for easy host-directory mounting - Traefik-ready `docker-compose.tml` for seamless integration into the proxy network
32 lines
1003 B
YAML
32 lines
1003 B
YAML
services:
|
|
docs:
|
|
build: .
|
|
container_name: ${SERVICE_NAME}
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${PROJECT_PATH:-./data}:/docs:ro
|
|
environment:
|
|
- DOCS_ROOT=/docs
|
|
- PORT=8000
|
|
networks:
|
|
- proxy
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${SERVICE_NAME}.rule=Host(`${SERVICE_DOMAIN}`)"
|
|
- "traefik.http.routers.${SERVICE_NAME}.entrypoints=websecure"
|
|
- "traefik.http.routers.${SERVICE_NAME}.tls=true"
|
|
- "traefik.http.routers.${SERVICE_NAME}.service=${SERVICE_NAME}-svc"
|
|
|
|
# HTTP to HTTPS redirect
|
|
- "traefik.http.routers.${SERVICE_NAME}-red.rule=Host(`${SERVICE_DOMAIN}`)"
|
|
- "traefik.http.routers.${SERVICE_NAME}-red.entrypoints=web"
|
|
- "traefik.http.routers.${SERVICE_NAME}-red.middlewares=https-redirect@docker"
|
|
|
|
# Target Port
|
|
- "traefik.http.services.${SERVICE_NAME}-svc.loadbalancer.server.port=8000"
|
|
|
|
networks:
|
|
proxy:
|
|
name: ${PROXY_NETWORK}
|
|
external: true
|