Files
canopy-workloads/README.md
T
kiskaadee 51445d4af1 feat(github_runner): author Nix-enabled ephemeral GitHub Actions runner stack (#11)
- .gitignore: ignore **/.env and **/app.env so runtime workload env files do not fail appctl clean-tree checks

- github_runner/Dockerfile & entrypoint-nix.sh: extend pinned myoung34/github-runner:ubuntu-noble with nixos/nix:2.24.12 seed, /etc/nix/nix.conf, non-root runner ownership, and single-line APP_PRIVATE_KEY_B64 decoding

- github_runner/docker-compose.yml: configure EPHEMERAL=true, RUN_AS_ROOT=false, DISABLE_AUTO_UPDATE=true, RUNNER_WORKDIR=/data/work, ../../var/lib/homelab/github_runner:/data, nix-store:/nix, and omit proxy-net for network isolation

- github_runner/app.yaml, .env-example, README.md & deployments.yaml: register github_runner (alias gh-runner) in admission registry and document GitHub App org permissions
2026-11-23 16:36:12 -05:00

1.7 KiB

🌐 Canopy Workloads

This repository contains the decoupled, portable application stacks managed by the Canopy homelab platform behind a Traefik Reverse Proxy and the nixos-core appctl / gitops_dispatcher control plane.


🏗️ Architectural Concept

Each workload lives in its own top-level directory with a declarative app.yaml manifest (schemaVersion: "1.0") and a docker-compose.yml baseline. Workloads attach to the shared external Docker network (proxy-net) and expose Traefik routing labels parameterized via runtime environment variables.

The root deployments.yaml serves as the authoritative workload admission registry, mapping each workload identity and its aliases to ~/Workloads/<app>.


🔑 Environment Variable Injection

To prevent secret leakage and hardcoded host configuration, compose baselines do not embed personal domains, UIDs, or host-specific paths. Runtime values (SERVICE_DOMAIN, PROXY_NETWORK, CERT_RESOLVER, secrets, and app-specific overrides) are injected at execution time by the host control plane (sops-nix rendered environment + appctl) or a local .env file for standalone portability:

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

📁 Repository Structure

  • deployments.yaml: Authoritative workload admission registry (schemaVersion: "1.0").
  • gitea/: Self-hosted Git service and code repository.
  • gitea_runner/: Standalone Gitea Actions CI/CD runner (act_runner).
  • github_runner/: Ephemeral Nix-enabled GitHub Actions self-hosted runner.
  • snappymail/: Lightweight webmail client.
  • jellyfin/: Media server and streaming hub.
  • armonia/: Armonía del Ser API and operator dashboard.