kiskaadee 22b41d142d feat(docs): introduce dynamic markdown documentation viewer
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
2026-07-09 17:39:18 -05:00
2026-06-25 23:54:22 -05:00

🌐 Unified Traefik Deployments

This repository contains a unified, decoupled, and portable suite of self-hosted application stacks designed to run behind a Traefik Reverse Proxy in a containerized homelab environment.


🏗️ Architectural Concept

Unlike core infrastructure systems, these applications run independently in their own directories. They integrate with the host's edge router dynamically via a shared external Docker network (proxy-net) and Traefik routing labels.

🌟 Host-Agnostic & Portable Design

All service definitions inside this repository are standard, vanilla Docker Compose configurations. While configured to read credentials from the environment, they can be deployed on any Linux distribution running Docker.


🔑 Environment Variable Injection

To prevent secret leakage and configuration duplication, services do not hardcode environment variables or depend on static, plaintext .env files in git. Instead, they expect configuration keys (e.g., PROXY_NETWORK, MONGO_ROOT_PASSWORD, JELLYFIN_DOMAIN) to be injected into the shell environment at runtime.

You can manage and inject these variables using several strategies depending on your host OS:

1. Environment Managers (e.g., Mozilla SOPS / sops-nix)

  • Our Native Setup: On NixOS, secrets are securely managed using sops-nix. At boot, SOPS decrypts the keys and renders a complete .env template to a secure RAM-backed filesystem (/run/secrets/rendered/traefik-deployments.env).
  • The CLI Wrapper: We use the local appctl CLI tool to automatically source this decrypted file and export its values before running the docker compose commands.

2. Standard Plaintext .env Files (Portable Fallback)

For standard Linux environments (Ubuntu, Debian, Arch, etc.), you can create a single unified .env file at the root of this repository and pass it during launch:

docker compose --env-file ../.env up -d

🛠️ CLI Wrapper (appctl)

To simplify service management across the homelab, a lightweight Bash utility named appctl is located at the root of this repository.

Commands

  • appctl list / status: Lists all unified services and their active runtime states.
  • appctl up <service>: Sources secrets, injects configurations, and spins up the container stack.
  • appctl down <service>: Stops and cleans up the container resources.
  • appctl restart <service>: Restarts the selected service.
  • appctl logs <service>: Streams real-time logs from the selected service.
  • appctl config <service>: Prints the active environment variables injected for a service.

📁 Repository Structure

  • excalidraw/: Collaborative whiteboarding tool.
  • jellyfin/: Media server for movies, shows, and music.
  • learning/: Local learning hub dashboard connected to a Turso/SQLite database and docker socket proxy.
  • mermaid/: Live diagramming editor.
  • mongo-docker/: MongoDB instance with replica sets initialized.
  • pgsql/: PostgreSQL database container.
  • ollama/: Local Large Language Model API server.
  • appctl: Custom Bash management CLI.
S
Description
Shared Traefik reverse proxy configuration, TLS termination, dynamic routers, and edge networking definitions.
Readme MIT
192 KiB
0 Stars 1 Watchers 0 Forks
Languages
Dockerfile 64.9%
Shell 35.1%