Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27fd03df59 | ||
|
|
55933afa17 |
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# DOMAIN AND DNS CONFIGURATION
|
||||
DOMAIN=yourdomain.com
|
||||
ACME_EMAIL=your-email@provider.com
|
||||
DYNU_API_KEY=your_dynu_api_key
|
||||
|
||||
# DOCKER CONFIGURATION
|
||||
DOCKER_API_VERSION=1.40
|
||||
|
||||
# AUTHELIA SECURITY SECRETS
|
||||
# Generate these using: openssl rand -hex 64
|
||||
AUTHELIA_SESSION_SECRET=session_secret_hex
|
||||
AUTHELIA_STORAGE_ENCRYPTION_KEY=storage_encryption_key_hex
|
||||
AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET=jwt_secret_hex
|
||||
@@ -9,18 +9,12 @@ on:
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: nixery.dev/shell/coreutils/git/nix/nodejs:latest
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Configure Git Safe Directory & Nix Flakes
|
||||
run: |
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
mkdir -p ~/.config/nix
|
||||
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
|
||||
echo "build-users-group =" >> ~/.config/nix/nix.conf
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- name: Run Architecture & Security Invariant Checks
|
||||
run: |
|
||||
|
||||
@@ -18,7 +18,7 @@ The homelab ecosystem separates **ownership**, **runtime architecture**, and **c
|
||||
The system operates across four runtime layers:
|
||||
1. **Host Foundation**: Headless NixOS Linux, disk configuration, Docker daemon, systemd daemons, firewall rules, and in-memory secret files under `/run/secrets/`.
|
||||
2. **Edge Gateway**: Traefik (v3.6) reverse proxy terminating wildcard TLS (`*.roadtotech.me`) via Dynu DNS-01 Let's Encrypt validation.
|
||||
3. **Core Platform Services**: Central services in `docker-compose.yml` (Authelia SSO, LLDAP directory, Stalwart mail, SnappyMail, Homepage dashboard, Dozzle, Watchtower, Diun, and socket-proxy).
|
||||
3. **Core Platform Services**: Central services in `docker-compose.yml` (Authelia SSO, LLDAP directory, Stalwart mail, SnappyMail, Homepage dashboard, Portainer, Dozzle, Watchtower, Diun, and socket-proxy).
|
||||
4. **Workload Plane**: Independent application stacks in `~/Sites` connected to the platform over the `proxy-net` Docker network.
|
||||
|
||||
### 3. Cross-Cutting Orchestration
|
||||
@@ -49,7 +49,7 @@ The system operates across four runtime layers:
|
||||
│ Docker proxy-net │
|
||||
├───────────────────────────────┤
|
||||
│ • Core Services (Homepage, │
|
||||
│ Dozzle, etc.) │
|
||||
│ Portainer, Dozzle, etc.) │
|
||||
│ • Workload Apps (~/Sites/*) │
|
||||
└───────────────────────────────┘
|
||||
│
|
||||
@@ -74,6 +74,7 @@ The system operates across four runtime layers:
|
||||
| **`stalwart`** | `mail.roadtotech.me` | Mail Server (SMTP/IMAP/JMAP/Sieve) | Native / LLDAP |
|
||||
| **`snappymail`** | `webmail.roadtotech.me` | Webmail client connected to Stalwart | Native / Stalwart |
|
||||
| **`homepage`** | `dashboard.roadtotech.me` | Service portal & system dashboard | Authelia Guard |
|
||||
| **`portainer`** | `portainer.roadtotech.me` | Container management GUI (via socket-proxy) | Authelia Guard |
|
||||
| **`dozzle`** | `logs.roadtotech.me` | Container log viewer (via socket-proxy) | Authelia Guard |
|
||||
| **`watchtower`** | Internal | Automated container image updater | Internal Only |
|
||||
| **`diun`** | Internal | Container image update notifier | Internal Only |
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ This document outlines the security controls, container isolation rules, and ope
|
||||
* Direct container mounts of `/var/run/docker.sock` are restricted.
|
||||
* Only the dedicated `socket-proxy` container mounts `/var/run/docker.sock:ro`.
|
||||
* State-modifying and execution API endpoints are disabled in HAProxy (`POST=0`, `DELETE=0`, `BUILD=0`, `EXEC=0`, `COMMIT=0`, `CONFIGS=0`, `DISTRIBUTION=0`, `NODES=0`, `PLUGINS=0`, `SECRETS=0`, `SWARM=0`, `SYSTEM=0`).
|
||||
* Traefik and Dozzle query Docker metrics and metadata via `tcp://socket-proxy:2375` rather than direct socket mounts.
|
||||
* Traefik, Portainer, and Dozzle query Docker metrics and metadata via `tcp://socket-proxy:2375` rather than direct socket mounts.
|
||||
|
||||
### B. Identity & Access Management (`lldap` & `authelia`)
|
||||
* **Directory Service**: User accounts and group memberships are stored in LLDAP (`users.roadtotech.me`).
|
||||
|
||||
+29
-23
@@ -161,6 +161,31 @@ services:
|
||||
- "traefik.http.routers.authelia-red.entrypoints=web"
|
||||
- "traefik.http.routers.authelia-red.middlewares=https-redirect@docker"
|
||||
|
||||
portainer:
|
||||
image: portainer/portainer-ce:latest
|
||||
container_name: portainer
|
||||
restart: always
|
||||
command: -H tcp://socket-proxy:2375
|
||||
volumes:
|
||||
- portainer_data:/data
|
||||
networks:
|
||||
- socket-net
|
||||
- proxy-net
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# Public (HTTPS)
|
||||
- "traefik.http.routers.portainer.rule=Host(`portainer.${DOMAIN}`)"
|
||||
- "traefik.http.routers.portainer.entrypoints=websecure"
|
||||
- "traefik.http.routers.portainer.tls=true"
|
||||
- "traefik.http.routers.portainer.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.portainer.middlewares=authelia-auth@docker"
|
||||
- "traefik.http.routers.portainer.service=portainer-svc"
|
||||
# Public (Redirect)
|
||||
- "traefik.http.routers.portainer-red.rule=Host(`portainer.${DOMAIN}`)"
|
||||
- "traefik.http.routers.portainer-red.entrypoints=web"
|
||||
- "traefik.http.routers.portainer-red.middlewares=https-redirect@docker"
|
||||
- "traefik.http.services.portainer-svc.loadbalancer.server.port=9000"
|
||||
|
||||
dozzle:
|
||||
image: amir20/dozzle:latest
|
||||
container_name: dozzle
|
||||
@@ -168,10 +193,6 @@ services:
|
||||
environment:
|
||||
- DOCKER_HOST=tcp://socket-proxy:2375
|
||||
- DOCKER_API_VERSION=${DOCKER_API_VERSION:-1.40}
|
||||
- DOZZLE_AUTH_PROVIDER=forward-proxy
|
||||
- DOZZLE_AUTH_LOGOUT_URL=https://auth.${DOMAIN}/logout
|
||||
volumes:
|
||||
- dozzle_data:/data
|
||||
networks:
|
||||
- proxy-net
|
||||
- socket-net
|
||||
@@ -206,33 +227,19 @@ services:
|
||||
container_name: diun
|
||||
restart: always
|
||||
command: serve
|
||||
depends_on:
|
||||
- socket-proxy
|
||||
- stalwart
|
||||
environment:
|
||||
- TZ=UTC
|
||||
- LOG_LEVEL=info
|
||||
- LOG_JSON=false
|
||||
- DIUN_WATCH_WORKERS=6
|
||||
- DIUN_WATCH_JITTER=30s
|
||||
- DIUN_WATCH_WORKERS=20
|
||||
- DIUN_WATCH_SCHEDULE=0 */6 * * *
|
||||
- DIUN_PROVIDERS_DOCKER=true
|
||||
- DIUN_PROVIDERS_DOCKER_ENDPOINT=tcp://socket-proxy:2375
|
||||
- DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true
|
||||
- DIUN_PROVIDERS_DOCKER_APIVERSION=${DOCKER_API_VERSION:-1.40}
|
||||
- DIUN_NOTIF_MAIL_HOST=stalwart
|
||||
- DIUN_NOTIF_MAIL_PORT=465
|
||||
- DIUN_NOTIF_MAIL_USERNAME=notifier@${DOMAIN:-roadtotech.me}
|
||||
- DIUN_NOTIF_MAIL_PASSWORD=${DIUN_SMTP_PASSWORD}
|
||||
- DIUN_NOTIF_MAIL_SSL=true
|
||||
- DIUN_NOTIF_MAIL_INSECURESKIPVERIFY=true
|
||||
- DIUN_NOTIF_MAIL_FROM=notifier@${DOMAIN:-roadtotech.me}
|
||||
- DIUN_NOTIF_MAIL_TO=kiskaadee@${DOMAIN:-roadtotech.me}
|
||||
- DOCKER_API_VERSION=${DOCKER_API_VERSION:-1.40}
|
||||
volumes:
|
||||
- ./config/diun:/data
|
||||
networks:
|
||||
- socket-net
|
||||
- proxy-net
|
||||
|
||||
stalwart:
|
||||
image: stalwartlabs/stalwart:v0.16.22
|
||||
@@ -277,7 +284,7 @@ services:
|
||||
depends_on:
|
||||
- stalwart
|
||||
volumes:
|
||||
- ./config/snappymail/data:/var/lib/snappymail/_data_
|
||||
- ./config/snappymail/data:/snappymail/data
|
||||
networks:
|
||||
- proxy-net
|
||||
labels:
|
||||
@@ -328,5 +335,4 @@ networks:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
dozzle_data:
|
||||
|
||||
portainer_data:
|
||||
+1
-1
@@ -206,7 +206,7 @@ When `appctl` executes commands against a workload, environment variables are re
|
||||
|
||||
When `appctl sync` runs:
|
||||
1. `appctl_engine.py` reads all `~/Sites/*/app.yaml` files.
|
||||
2. Core services (`traefik`, `authelia`, `lldap`, `stalwart`, `snappymail`, `dozzle`) are assigned to `Core Infrastructure`.
|
||||
2. Core services (`traefik`, `authelia`, `lldap`, `stalwart`, `snappymail`, `portainer`, `dozzle`) are assigned to `Core Infrastructure`.
|
||||
3. Workload applications with `visible: true` are grouped by their `homepage.group` (ordered: `Core Infrastructure`, `Knowledge & Notes`, `Media & Productivity`, `Development & AI`, `Applications`).
|
||||
4. Custom icons matching files in `config/homepage/icons/` (SVG or PNG) are mapped to `/icons/<name>`.
|
||||
5. The compiled configuration is written to `config/homepage/services.yaml`.
|
||||
@@ -25,7 +25,7 @@ The runtime environment consists of four functional layers:
|
||||
┌────────────────────────────────────────────────────────────────────────┐
|
||||
│ 2. CONTROL & PLATFORM SERVICES (Core Compose Stack) │
|
||||
│ Authelia SSO · LLDAP Directory · Stalwart Mail · SnappyMail │
|
||||
│ Homepage Dashboard · Dozzle · Watchtower · Diun │
|
||||
│ Homepage Dashboard · Portainer · Dozzle · Watchtower · Diun │
|
||||
│ socket-proxy (Read-Only Docker API Barrier) │
|
||||
└───────────────────────────────────┬────────────────────────────────────┘
|
||||
│
|
||||
@@ -81,8 +81,9 @@ Orchestration coordinates operations across the runtime layers without being a r
|
||||
- Outbound mail relay configured to route through an external smart host (Brevo SMTP relay via SOPS secrets).
|
||||
* **`snappymail`**: Webmail client accessible at `webmail.roadtotech.me` routing to Stalwart.
|
||||
|
||||
### E. Portal & Observability (`homepage`, `dozzle`)
|
||||
### E. Portal & Observability (`homepage`, `portainer`, `dozzle`)
|
||||
* **`homepage`**: Service dashboard at `dashboard.roadtotech.me`. Synchronized from `app.yaml` manifests in `~/Sites` by `appctl sync`.
|
||||
* **`portainer`**: Container management interface at `portainer.roadtotech.me`, connecting to Docker through `socket-proxy`.
|
||||
* **`dozzle`**: Log viewing interface at `logs.roadtotech.me`, connecting through `socket-proxy`.
|
||||
|
||||
### F. Host Foundation & Daemons
|
||||
@@ -107,7 +108,7 @@ Homelab Core configures two bridge networks:
|
||||
│ │ • traefik (router) • authelia (sso) │ │
|
||||
│ │ • lldap (directory) • stalwart (mail) │ │
|
||||
│ │ • snappymail (webmail) • homepage (dashboard) │ │
|
||||
│ │ • dozzle (logs) │ │
|
||||
│ │ • portainer (management) • dozzle (logs) │ │
|
||||
│ │ • All User Workloads (~/Sites/*) │ │
|
||||
│ └──────────────────────────────┬───────────────────────────────┘ │
|
||||
│ │ │
|
||||
@@ -115,8 +116,9 @@ Homelab Core configures two bridge networks:
|
||||
│ │ socket-net (Bridge) │ │
|
||||
│ │ │ │
|
||||
│ │ • socket-proxy (HAProxy :2375) • traefik │ │
|
||||
│ │ • dozzle • watchtower │ │
|
||||
│ │ • diun • homepage │ │
|
||||
│ │ • portainer • dozzle │ │
|
||||
│ │ • watchtower • diun │ │
|
||||
│ │ • homepage │ │
|
||||
│ └──────────────────────────────┬───────────────────────────────┘ │
|
||||
│ │ (ro mount) │
|
||||
│ ▼ │
|
||||
|
||||
@@ -152,24 +152,3 @@ cat ~/.local/state/homelab/gitops/homelab-docs.status.json
|
||||
# Trigger a local manual deployment run
|
||||
python3 ~/Core/scripts/gitops_dispatcher.py --repo docs --branch main
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 6. Pre-Merge CI Gating vs. Post-Merge CD Dispatcher
|
||||
|
||||
The continuous deployment engine operates strictly **downstream** of CI verification:
|
||||
|
||||
```
|
||||
[Developer / PR] ──► [Gitea Actions CI] ──► [Merge to main] ──► [Gitea Webhook] ──► [homelab-gitops] ──► [Deploy]
|
||||
(Ephemeral Container) (Host Daemon)
|
||||
```
|
||||
|
||||
1. **Pre-Merge CI Invariant (`.gitea/workflows/ci.yaml`)**:
|
||||
- Executes inside containerized `act_runner` environments using **pre-baked toolchain images** (`container: nixery.dev/shell/coreutils/git/nix/nodejs:latest`).
|
||||
- Runs hermetic validation (`nix flake check`, `pytest`, `ruff`) with Git safe directory enforcement.
|
||||
- Prevents broken code, misconfigured flakes, or regression bugs from entering `main`.
|
||||
2. **Post-Merge CD Execution (`homelab-gitops.service`)**:
|
||||
- Triggers only after commits are admitted into `main`.
|
||||
- Executes non-shell allowlisted actions (`git_pull`, `compose_up`) on the server host.
|
||||
- Operates fully decoupled from the CI runner runtime.
|
||||
|
||||
+2
-2
@@ -51,7 +51,7 @@ docker system prune -a --volumes --filter "until=168h"
|
||||
Homelab Core runs several platform services managed by systemd:
|
||||
|
||||
### `homeserver-core.service` (Core Compose Stack)
|
||||
Manages the lifecycle of Traefik, Authelia, LLDAP, Stalwart, SnappyMail, Homepage, Dozzle, Watchtower, and Diun.
|
||||
Manages the lifecycle of Traefik, Authelia, LLDAP, Stalwart, SnappyMail, Homepage, Portainer, Dozzle, Watchtower, and Diun.
|
||||
|
||||
```bash
|
||||
# Check service status
|
||||
@@ -211,7 +211,7 @@ User accounts and group memberships are managed dynamically in **LLDAP** rather
|
||||
```
|
||||
|
||||
### C. Docker Socket Communication Errors
|
||||
* **Symptom**: Traefik fails to discover routers, or Dozzle shows "Cannot connect to Docker daemon".
|
||||
* **Symptom**: Traefik fails to discover routers, or Dozzle/Portainer shows "Cannot connect to Docker daemon".
|
||||
* **Diagnosis**:
|
||||
```bash
|
||||
# Verify socket-proxy is running and healthy
|
||||
|
||||
@@ -115,6 +115,6 @@ Homelab Core separates **user identity** from **static platform secrets**:
|
||||
| **Auth Database** | `~/Core/config/authelia/db.sqlite3` | ❌ No | Authelia session database |
|
||||
| **Mail Data & Keys** | `~/Core/config/stalwart/` | ❌ No | Stalwart mail storage, DKIM keys, mailboxes |
|
||||
| **Webmail Storage** | `~/Core/config/snappymail/data/` | ❌ No | SnappyMail configuration and sessions |
|
||||
| **Container Volumes** | Docker volume `dozzle_data` | ❌ No | Dozzle UI preferences and state |
|
||||
| **Container Volumes** | Docker volume `portainer_data` | ❌ No | Portainer internal metadata |
|
||||
| **DDNS History** | `/var/lib/dynu/ip_history.jsonl` | ❌ No | Historical WAN IP transitions log |
|
||||
| **GitOps State** | `~/.local/state/homelab/gitops/` | ❌ No | Deployment locks, pending JSONs, status logs |
|
||||
Generated
+4
-4
@@ -2,11 +2,11 @@
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1790046670,
|
||||
"narHash": "sha256-OJe62m8gZx4xEAQnMcqH1u31/uu4Xf0q2ykAEHZfgrg=",
|
||||
"rev": "6774f7bc253789b113a4f39285dc0fa100abeacc",
|
||||
"lastModified": 1789785513,
|
||||
"narHash": "sha256-BMbikTjbh5H7ac/OjwGoJrlooh4dgNqhs51ABM83M7g=",
|
||||
"rev": "20b1ddd1aa5ace70c9468305030aa4f9ef79671b",
|
||||
"type": "tarball",
|
||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1077996.6774f7bc2537/nixexprs.tar.zst"
|
||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1076192.20b1ddd1aa5a/nixexprs.tar.zst"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
|
||||
@@ -66,12 +66,7 @@
|
||||
};
|
||||
|
||||
# ── Virtualisation ───────────────────────────────────────────────────────────
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
daemon.settings = {
|
||||
dns = [ "1.1.1.1" "1.0.0.1" ];
|
||||
};
|
||||
};
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
# ── Dynamic binary support ───────────────────────────────────────────────────
|
||||
programs.nix-ld = {
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
"gitops/webhook_secret"
|
||||
"brevo/smtp_login"
|
||||
"brevo/smtp_key"
|
||||
"diun/smtp_password"
|
||||
] (name: { owner = "kiskaadee"; });
|
||||
|
||||
# Generate the unified environment file at runtime in /run/secrets/homeserver.env
|
||||
@@ -39,7 +38,6 @@
|
||||
SMTP_PORT = "587";
|
||||
SMTP_LOGIN = config.sops.placeholder."brevo/smtp_login";
|
||||
SMTP_KEY = config.sops.placeholder."brevo/smtp_key";
|
||||
DIUN_SMTP_PASSWORD = config.sops.placeholder."diun/smtp_password";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -81,7 +79,7 @@
|
||||
id = "deploy";
|
||||
execute-command = "/home/kiskaadee/Core/scripts/gitops_dispatcher.py";
|
||||
pass-arguments-to-command = [
|
||||
{ source = "raw-request-body"; }
|
||||
{ source = "entire-payload"; }
|
||||
{ source = "header"; name = "X-Gitea-Signature"; }
|
||||
{ source = "header"; name = "X-Gitea-Event"; }
|
||||
];
|
||||
|
||||
+2
-4
@@ -2,8 +2,6 @@ authelia:
|
||||
session_secret: ENC[AES256_GCM,data:TmujJ9I51cQrzRMcvFkhFnG1CICebOM332NUTwXSj33niFdrV3xfHWR3h83/WcNk+M/i0AjcFtZ7fRYNW5VV2766p2BAfsaihSN8yQPrsQRNPyQKvSgij2xWL/B5I1a7NQGRh7xX6yiQYqaPzrwKnlcv8kmKp8aFPlkdmWYOCPc=,iv:Pcj6yu1MvZBJ0VPfuEO4RiTiE5SOULI/jGAz8dy/X4g=,tag:firz8cjG9HP8HEgKM4c53Q==,type:str]
|
||||
storage_encryption_key: ENC[AES256_GCM,data:ycsfhh9cAsIbSEVaPvCH8ky0t+zayLtI6NVLcb+v2HIJMYSqD8eXu7JCvp5E0u1PkGTyaAoatXtcdChb2ABEiUNeqlOPXciF4ED+4yFAXftfMKy/M4AAYgp9jBA1v8JsE5mfBEOfmnBWV5SwGSaHBcQgUoJubKqcODPfHOmkKwg=,iv:1bgvgcClI+2VG6wXa5el5jfOrkCx+bj33VYiFdA1gas=,tag:0n7nJaZomtllFzSH2+Z8yw==,type:str]
|
||||
jwt_secret: ENC[AES256_GCM,data:C1FnoRi49PSaIZNp+SAS6Q5+odYwai75OR4UfvGx1Jk8wb4nVDUASpaOgm7ZFJysTX4WjuQi99PYyG5GshlHoJ5dVbLSFpEq7MSSiY8tZA2PqnHmIODNYARfFw6lB7udPjz8ANyU2UcrnwRKXnDD+T2Pa1uL9joW5rg7vWZlRks=,iv:IDZ2/wbmCPoR14b1imZrTJR5LuQp6V91tcZ/Z5Znl0w=,tag:d0UQ49QcEqgD+PCIBoOJ7Q==,type:str]
|
||||
diun:
|
||||
smtp_password: ENC[AES256_GCM,data:ED3NoQWxpuucfpGAiw==,iv:fWmHEnNr9r1OpgteTJwT8Z2iKn1WKPf8WudWWvBnvjA=,tag:MjVAN7IITEm+Og+3k/SGVg==,type:str]
|
||||
traefik:
|
||||
acme_email: ENC[AES256_GCM,data:U2IPYioGlfgSpfZy5E+2+VM0iXQ=,iv:zQ5Txq9H7mF7GcaZfyPPjSQFKa0736/DI7Y4XARMFqM=,tag:7Q4YN9OPA1rRVpXuapewQQ==,type:str]
|
||||
dynu:
|
||||
@@ -57,7 +55,7 @@ sops:
|
||||
yvBksdjSVYITIR6E6sZJx4ujk8Gmu64UsHwxtASMZRQ60sUjLCo8+A==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
recipient: age1pln9sxy5j93lklqklfwp3qepx7x4cs4y2w63n9y3ykt68qgra5ysqleesg
|
||||
lastmodified: "2026-09-25T00:49:38Z"
|
||||
mac: ENC[AES256_GCM,data:EyJ9V0aYo7isyqnW6HWBz4hD2X6xa+VRNg3TaK88gkX6YCG/H0htBfMf/VYl/hOA/eEZW+uMVys8Ocula9zpY1Pd1gUbWt5FrXQvooYNhtCFCFUAJdsrmif8Ru7AXazFbyhhaeBSBjSQURM0qi69XqllVvfmiSz32WlX/QIOZ/c=,iv:znmm8JuFKSFl2IGGhRG77SE9kqy3uFWUK8VjocJ18n4=,tag:tG000kt5a6W1fa0IEfvLLQ==,type:str]
|
||||
lastmodified: "2026-09-15T19:45:16Z"
|
||||
mac: ENC[AES256_GCM,data:356RqShyhqaBM3Z1/Nz/ignvR6OYlUhASrCEBQ4aAR6Fkd4SMQVVEnvUuwn7mT1J5LJkB21NHnlKO/PHcqRdvB1HjFgwqIL31ZzT5ugWyVvz5PRg97wcYzwOqszNKQYWPVRRuMedgU2tFLMK9v1WAvUJnPf6upMHcliljldgFIg=,iv:Cl1TT61MegkA9Imo8WWKOTyUrYGrElc2D7WbAIvwHgs=,tag:e81/PgkCTTkKrN0jsRKn4Q==,type:str]
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.13.3
|
||||
@@ -328,6 +328,7 @@ def get_core_services():
|
||||
{"name": "lldap", "domain": "users.roadtotech.me", "container": "lldap", "desc": "Lightweight LDAP User & Group Directory"},
|
||||
{"name": "stalwart", "domain": "mail.roadtotech.me", "container": "stalwart", "desc": "All-in-one Mail Server & JMAP/IMAP/SMTP"},
|
||||
{"name": "snappymail", "domain": "webmail.roadtotech.me", "container": "snappymail", "desc": "Modern Lightweight Webmail Client"},
|
||||
{"name": "portainer", "domain": "portainer.roadtotech.me", "container": "portainer", "desc": "Container Management GUI"},
|
||||
{"name": "dozzle", "domain": "logs.roadtotech.me", "container": "dozzle", "desc": "Real-time Log Viewer"},
|
||||
{"name": "socket-proxy", "domain": "internal", "container": "socket-proxy", "desc": "Docker Socket Security Proxy"},
|
||||
{"name": "homepage", "domain": "dashboard.roadtotech.me", "container": "homepage", "desc": "Application Dashboard & System Portal"},
|
||||
@@ -758,6 +759,7 @@ def cmd_sync_homepage(args):
|
||||
"lldap": {"title": "LLDAP Directory", "icon": "lldap.png", "weight": 25},
|
||||
"stalwart": {"title": "Stalwart Mail", "icon": "email.png", "weight": 26},
|
||||
"snappymail": {"title": "Webmail", "icon": "email.png", "weight": 27},
|
||||
"portainer": {"title": "Portainer", "icon": "portainer.png", "weight": 30},
|
||||
"dozzle": {"title": "Dozzle", "icon": "dozzle.png", "weight": 40},
|
||||
}
|
||||
for svc in get_core_services():
|
||||
|
||||
@@ -64,16 +64,3 @@ def test_no_shell_true_in_core_scripts():
|
||||
for py_file in scripts_dir.glob("*.py"):
|
||||
content = py_file.read_text(encoding="utf-8")
|
||||
assert "shell=True" not in content, f"shell=True detected in {py_file.name}!"
|
||||
|
||||
|
||||
def test_portainer_is_deprecated_and_absent():
|
||||
"""Ensure portainer service and volume are completely absent from core docker-compose."""
|
||||
compose_path = CORE_ROOT / "docker-compose.yml"
|
||||
with open(compose_path, encoding="utf-8") as f:
|
||||
compose = yaml.safe_load(f)
|
||||
|
||||
services = compose.get("services", {})
|
||||
assert "portainer" not in services, "Deprecated service 'portainer' must not exist in docker-compose.yml"
|
||||
|
||||
volumes = compose.get("volumes", {}) or {}
|
||||
assert "portainer_data" not in volumes, "Deprecated volume 'portainer_data' must not exist in docker-compose.yml"
|
||||
Reference in new issue
Block a user