diff --git a/.gitignore b/.gitignore index 4ca43fe..8931e9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,37 @@ -# Environments -.venv/ +# Environments & Secrets .env +.env.* +**/letsencrypt/acme.json +**/config/*.env +**/config/users.yml +**/.env -# Certificates and Secrets -**/acme.json +# Authelia Data +**/authelia/config/db.sqlite3 +**/authelia/config/emails.txt + +# Application Data (Persistent Volumes) +**/data/ +**/ollama_data/ +**/portainer_data/ + +# Infrastructure Data +infra/diun/data/ +infra/authelia/config/db.sqlite3 + +# Certificates **/*.key **/*.crt +**/*.pem + +# Python +__pycache__/ +*.py[cod] +*$py.class +.venv/ +venv/ # OS Metadata .DS_Store +Thumbs.db +apps/homepage/config/logs/homepage.log diff --git a/README.md b/README.md index 413ecbd..40550f3 100644 --- a/README.md +++ b/README.md @@ -1,161 +1,94 @@ -# Arch-traefik-hub 🚀 +# Hardened Private Cloud Hub -A centralized local services platform using **Traefik v3** as a reverse proxy with automated **SSL (Let's Encrypt)** and resilient **Dynu DDNS IP synchronization**. +This repository contains a modular, secure, and self-documenting homeserver architecture based on the **Hardened Hub** model. ---- +## 🏗️ Architectural Overview -## 🏗️ Architecture +The system is split into two distinct layers to ensure stability and security: -The system is composed of two independent but complementary layers: +### 1. Control Plane (`infra/`) +The "nervous system" of the server. These services handle security, routing, identity, and maintenance. -### 1. Gateway Layer (Traefik) -- Reverse proxy for all services -- Handles HTTPS termination -- Performs ACME DNS-01 challenges via Dynu API -- Runs inside `core/` +- **Core (`infra/core`):** + - **Traefik (v3.6):** The front door. Handles HTTPS (Let's Encrypt), routing, and load balancing. + - **Socket-Proxy:** The security wall. Decouples containers from the host's `/var/run/docker.sock`. +- **Identity (`infra/authelia`):** Provides Single Sign-On (SSO) and 2FA protection for apps. +- **Management (`infra/portainer`):** Visual container and stack management. +- **Monitoring (`infra/dozzle`):** Real-time log streaming for all containers (SSO Protected). +- **Maintenance (`infra/watchtower`, `infra/diun`):** Automated image updates and notifications. -### 2. Infrastructure Layer (Dynu IP Sync) -- Systemd-managed IP monitor (`dynu.service`) -- Periodically detects public IPv4 changes -- Updates Dynu DNS records only when necessary -- Uses: - - DNS (fast path via `dig`) - - HTTP providers (fallback) - - Atomic state (`/var/lib/dynu/last_ip`) - - Structured journald logs +### 2. Data Plane (`apps/`) +The consumer-facing applications. -### 3. Network -- Shared Docker bridge: `proxy-net` -- Domain: `*.arch-services.mywire.org` - ---- - -## 🚦 Project Status - -| Component | Status | -| :--- | :--- | -| NAT Port Forwarding (80/443) | ✅ Completed | -| Traefik Gateway | ✅ Operational | -| Dynu DDNS IP Sync | ✅ Completed | -| ACME DNS-01 (Let's Encrypt) | ⏳ Pending validation | -| Python Dashboard | 🏗️ In Progress | +- **Homepage:** Central dashboard at `arch-services.mywire.org`. +- **Gitea:** Self-hosted Git service (SSO Protected). +- **Ollama:** Local LLM runner with 3 replicas. +- **Excalidraw & Mermaid:** Visual tools for whiteboarding and diagramming. --- ## 🚀 Getting Started -### 1. Environment Configuration +### 1. Secrets Management +Secrets are kept out of the configuration files and stored in `.env` files (git-ignored). -Create `.env` in the project root: +- **Core Infrastructure:** Create `infra/core/.env` based on `.env-example`: + ```env + DYNU_API_KEY=your_key + ACME_EMAIL=your_email + ``` +- **Identity (Authelia):** Create `infra/authelia/.env` with the following: + ```env + AUTHELIA_SESSION_SECRET=long_random_string + AUTHELIA_STORAGE_ENCRYPTION_KEY=long_random_string + AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET=long_random_string + ``` + +### 2. Deployment +Use the `up.sh` script to launch the stack. The script handles networks, permissions, and service sequencing. ```bash -DYNU_API_KEY=your_key_here -ACME_EMAIL=your_email@example.com -DOMAIN=arch-services.mywire.org -``` - ---- - -### 2. Launch the Gateway - -```bash -chmod +x up.sh +# Start everything (Infrastructure + Apps) ./up.sh + +# Start ONLY the Control Plane +./up.sh --infra-only ``` -This will: -- Create the shared Docker network -- Set correct permissions for ACME storage -- Start Traefik and core services +### 3. Verification +Once deployed, verify your services are reachable: +- **Homepage:** `https://arch-services.mywire.org` +- **Auth Portal:** `https://auth.arch-services.mywire.org` +- **Gitea:** `https://gitea.arch-services.mywire.org` (Redirects to Auth) +- **Logs:** `https://logs.arch-services.mywire.org` (Redirects to Auth) --- -### 3. Configure Dynu IP Sync (Host-level) +## 📊 Observability & Monitoring -The IP updater runs **outside Docker** via systemd. +The system includes built-in tools for real-time monitoring and management: -Run the setup script: - -```bash -sudo ./setup-dynu.sh \ - --host yourdomain.mywire.org \ - --user your_dynu_username \ - --password your_dynu_password -``` - -This installs: -- `/usr/local/bin/ip-monitor.sh` -- `dynu.service` -- `dynu.timer` - -Verify: - -```bash -systemctl status dynu.timer -journalctl -u dynu.service -f -cat /var/lib/dynu/last_ip -``` +- **Traefik Dashboard**: `https://traefik.arch-services.mywire.org` — View routing, entrypoints, and certificate status (SSO Protected). +- **Dozzle**: `https://logs.arch-services.mywire.org` — Real-time log streaming for all containers (SSO Protected). +- **Portainer**: `https://portainer.arch-services.mywire.org` — Advanced container, volume, and stack management (SSO Protected). +- **Homepage**: `https://arch-services.mywire.org` — The central "Single Pane of Glass" for all your services. --- -## 🔍 Verification +## 📜 Log Policy -- **Traefik Logs** - ```bash - docker logs -f traefik - ``` +To prevent the host system from running out of disk space, a **Log Rotation** policy is enforced: -- **Dynu Sync Logs** - ```bash - journalctl -u dynu.service -f - ``` +- **Driver**: `json-file` +- **Max Size**: `10m` (10 Megabytes per file) +- **Max Files**: `3` (Keeps the last 3 files) -- **Check Current IP State** - ```bash - cat /var/lib/dynu/last_ip - ``` +This policy is currently enabled on core infrastructure and is recommended for all high-traffic application containers. --- -## 🛠️ Adding New Services - -Each service must: - -- Join `proxy-net` -- Define Traefik routing labels - -```yaml -labels: - - "traefik.enable=true" - - "traefik.http.routers.MYSERVICE.rule=Host(`myservice.arch-services.mywire.org`)" - - "traefik.http.routers.MYSERVICE.entrypoints=websecure" - - "traefik.http.routers.MYSERVICE.tls.certresolver=myresolver" -``` - ---- - -## 📦 Current Services - -- Excalidraw → `excalidraw.${DOMAIN}` -- Gitea → `gitea.${DOMAIN}` -- Ollama (x3) → `ollama.${DOMAIN}` -- Dozzle → `logs.${DOMAIN}` - ---- - -## 📌 Design Principles - -- **Idempotent execution** (safe under repetition) -- **Fail-fast behavior** (no partial state) -- **Atomic state updates** -- **Separation of concerns**: - - Traefik → TLS + routing - - Dynu updater → IP correctness -- **Observability-first logging** (journald structured events) - ---- - -## 📚 Related Docs - -- `docs/dynu-ip-update.md` → usage and operational notes -- `docs/dynu-ip-update-protocol.md` → design and architecture decisions \ No newline at end of file +## 🛡️ Security Features +- **Socket Isolation:** No application container has access to the Docker socket. All management tools use the `socket-proxy`. +- **SSO Integration:** Critical apps (Gitea, Dozzle, Portainer) are behind Authelia Forward Auth. +- **Automatic TLS:** Traefik manages Let's Encrypt certificates via DNS-01 challenges with Dynu. +- **Network Segmentation:** Services are isolated on `proxy-net` and `socket-net`. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..78e4bc7 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,53 @@ +# Security Policy & Hardening Overview + +This document outlines the security posture of the **Hardened Private Cloud Hub** and provides guidance on maintaining a secure environment. + +## 🛡️ Implemented Hardening Measures + +### 1. Docker Socket Isolation (Socket-Proxy) +The most critical security feature. No container (including Traefik or Portainer) has direct access to the host's `/var/run/docker.sock`. +- **Mechanism**: The `socket-proxy` container is the *only* one with access to the real socket. +- **Filtering**: It uses HAProxy to filter API calls. Traefik can see containers and networks but cannot create/delete them. Management tools like Watchtower are granted specific POST/DELETE permissions only through this proxy. +- **Benefit**: Even if an attacker compromises Traefik, they cannot use the Docker API to spin up a privileged container and take over the host (a common "container breakout" attack). + +### 2. Identity & Access Management (Authelia) +- **SSO**: All management tools (Traefik Dash, Dozzle, Portainer) and critical apps (Gitea) are behind Authelia. +- **2FA Support**: Authelia supports TOTP (Google Authenticator, etc.) and FIDO2 (Yubikey). +- **Forward Auth**: Traefik intercepts all requests and validates the session with Authelia before the request ever reaches the target app. + +### 3. Network Segmentation +- **`proxy-net`**: Shared network for Traefik to route traffic to apps. +- **`socket-net`**: Highly restricted network for infrastructure-to-socket communication. Application containers are **not** members of this network. + +### 4. Automated Maintenance +- **Watchtower**: Automatically updates containers when new security patches are released for their images. + +--- + +## ⚠️ Potential Attack Vectors & Concerns + +Despite the hardening, you should remain vigilant about the following: + +### 1. Host-Level Security (The Foundation) +If an attacker gains SSH access to your Arch Linux host, they have total control. +- **Action**: Use SSH Keys only (disable password login). Install `fail2ban`. Keep the host kernel updated (`pacman -Syu`). + +### 2. Application-Specific Vulnerabilities +A zero-day exploit in Gitea or Ollama could allow an attacker to execute code *inside* that specific container. +- **Mitigation**: Containers run as non-root users where possible. The `socket-proxy` ensures they cannot escape to the host easily. + +### 3. Let's Encrypt / ACME Exposure +The `acme.json` file contains your private keys. +- **Action**: This file is restricted to `chmod 600`. Never share it or commit it to version control. + +### 4. Denial of Service (DDoS) +Home connections are vulnerable to bandwidth saturation. +- **Mitigation**: Consider using a Cloudflare Tunnel or a VPS-based "Entry Node" if you expect high traffic or targeted attacks. + +--- + +## 🛠️ Security Checklist for Production +- [ ] Replace all placeholder secrets in `infra/authelia/.env`. +- [ ] Hash your user passwords in `infra/authelia/config/users.yml` using `docker run --rm authelia/authelia authelia crypto hash generate pbkdf2 --password "your_password_here"`. +- [ ] Disable Traefik/Authelia access from the public internet if only local use is needed (via Firewall/IP Whitelisting). +- [ ] Ensure `acme.json` is backed up securely but kept private. diff --git a/apps/excalidraw/docker-compose.yml b/apps/excalidraw/docker-compose.yml new file mode 100644 index 0000000..743c696 --- /dev/null +++ b/apps/excalidraw/docker-compose.yml @@ -0,0 +1,31 @@ +services: + excalidraw: + image: excalidraw/excalidraw:latest + environment: + - REACT_APP_BACKEND_V2_GET_URL=https://excalidraw.arch-services.mywire.org/api/v2 + - REACT_APP_BACKEND_V2_POST_URL=https://excalidraw.arch-services.mywire.org/api/v2 + - REACT_APP_WS_SERVER_URL=wss://excalidraw.arch-services.mywire.org/socket.io + networks: + - proxy-net + labels: + - "traefik.enable=true" + - "traefik.http.routers.excalidraw.rule=Host(`excalidraw.arch-services.mywire.org`)" + - "traefik.http.routers.excalidraw.entrypoints=websecure" + - "traefik.http.routers.excalidraw.tls.certresolver=myresolver" + - "traefik.http.services.excalidraw.loadbalancer.server.port=80" + + excalidraw-room: + image: excalidraw/excalidraw-room:latest + restart: on-failure + networks: + - proxy-net + labels: + - "traefik.enable=true" + - "traefik.http.routers.excalidraw-room.rule=Host(`excalidraw.arch-services.mywire.org`) && PathPrefix(`/socket.io`)" + - "traefik.http.routers.excalidraw-room.entrypoints=websecure" + - "traefik.http.routers.excalidraw-room.tls.certresolver=myresolver" + - "traefik.http.services.excalidraw-room.loadbalancer.server.port=8080" + +networks: + proxy-net: + external: true diff --git a/services/gitea/docker-compose.yml b/apps/gitea/docker-compose.yml similarity index 90% rename from services/gitea/docker-compose.yml rename to apps/gitea/docker-compose.yml index e275970..4ce172f 100644 --- a/services/gitea/docker-compose.yml +++ b/apps/gitea/docker-compose.yml @@ -16,6 +16,7 @@ services: - "traefik.http.routers.gitea.rule=Host(`gitea.arch-services.mywire.org`)" - "traefik.http.routers.gitea.entrypoints=websecure" - "traefik.http.routers.gitea.tls.certresolver=myresolver" + - "traefik.http.routers.gitea.middlewares=authelia-auth@docker" - "traefik.http.services.gitea.loadbalancer.server.port=3000" networks: diff --git a/apps/homepage/config/bookmarks.yaml b/apps/homepage/config/bookmarks.yaml new file mode 100644 index 0000000..2b82ea7 --- /dev/null +++ b/apps/homepage/config/bookmarks.yaml @@ -0,0 +1,18 @@ +--- +# For configuration options and examples, please see: +# https://gethomepage.dev/configs/bookmarks + +- Developer: + - Github: + - abbr: GH + href: https://github.com/ + +- Social: + - Reddit: + - abbr: RE + href: https://reddit.com/ + +- Entertainment: + - YouTube: + - abbr: YT + href: https://youtube.com/ diff --git a/core/traefik.yml b/apps/homepage/config/custom.css similarity index 100% rename from core/traefik.yml rename to apps/homepage/config/custom.css diff --git a/dashboard/README.md b/apps/homepage/config/custom.js similarity index 100% rename from dashboard/README.md rename to apps/homepage/config/custom.js diff --git a/apps/homepage/config/docker.yaml b/apps/homepage/config/docker.yaml new file mode 100644 index 0000000..2f4c4e3 --- /dev/null +++ b/apps/homepage/config/docker.yaml @@ -0,0 +1,10 @@ +--- +# For configuration options and examples, please see: +# https://gethomepage.dev/configs/docker/ + +# my-docker: +# host: 127.0.0.1 +# port: 2375 + +# my-docker: +# socket: /var/run/docker.sock diff --git a/apps/homepage/config/kubernetes.yaml b/apps/homepage/config/kubernetes.yaml new file mode 100644 index 0000000..aca6e82 --- /dev/null +++ b/apps/homepage/config/kubernetes.yaml @@ -0,0 +1,2 @@ +--- +# sample kubernetes config diff --git a/apps/homepage/config/proxmox.yaml b/apps/homepage/config/proxmox.yaml new file mode 100644 index 0000000..90aacd7 --- /dev/null +++ b/apps/homepage/config/proxmox.yaml @@ -0,0 +1,5 @@ +--- +# pve: +# url: https://proxmox.host.or.ip:8006 +# token: username@pam!Token ID +# secret: secret diff --git a/apps/homepage/config/services.yaml b/apps/homepage/config/services.yaml new file mode 100644 index 0000000..39b3792 --- /dev/null +++ b/apps/homepage/config/services.yaml @@ -0,0 +1,18 @@ +--- +# For configuration options and examples, please see: +# https://gethomepage.dev/configs/services/ + +- My First Group: + - My First Service: + href: http://localhost/ + description: Homepage is awesome + +- My Second Group: + - My Second Service: + href: http://localhost/ + description: Homepage is the best + +- My Third Group: + - My Third Service: + href: http://localhost/ + description: Homepage is 😎 diff --git a/apps/homepage/config/settings.yaml b/apps/homepage/config/settings.yaml new file mode 100644 index 0000000..2e828c0 --- /dev/null +++ b/apps/homepage/config/settings.yaml @@ -0,0 +1,7 @@ +--- +# For configuration options and examples, please see: +# https://gethomepage.dev/configs/settings/ + +providers: + openweathermap: openweathermapapikey + weatherapi: weatherapiapikey diff --git a/apps/homepage/config/widgets.yaml b/apps/homepage/config/widgets.yaml new file mode 100644 index 0000000..b1cf0f5 --- /dev/null +++ b/apps/homepage/config/widgets.yaml @@ -0,0 +1,12 @@ +--- +# For configuration options and examples, please see: +# https://gethomepage.dev/configs/info-widgets/ + +- resources: + cpu: true + memory: true + disk: / + +- search: + provider: duckduckgo + target: _blank diff --git a/apps/homepage/docker-compose.yml b/apps/homepage/docker-compose.yml new file mode 100644 index 0000000..07ba65b --- /dev/null +++ b/apps/homepage/docker-compose.yml @@ -0,0 +1,21 @@ +services: + homepage: + image: ghcr.io/gethomepage/homepage:latest + container_name: homepage + restart: always + volumes: + - ./config:/app/config + environment: + - HOMEPAGE_ALLOWED_HOSTS=arch-services.mywire.org + networks: + - proxy-net + labels: + - "traefik.enable=true" + - "traefik.http.routers.homepage.rule=Host(`arch-services.mywire.org`)" + - "traefik.http.routers.homepage.entrypoints=websecure" + - "traefik.http.routers.homepage.tls.certresolver=myresolver" + - "traefik.http.services.homepage.loadbalancer.server.port=3000" + +networks: + proxy-net: + external: true diff --git a/apps/mermaid/docker-compose.yml b/apps/mermaid/docker-compose.yml new file mode 100644 index 0000000..1f0e3e3 --- /dev/null +++ b/apps/mermaid/docker-compose.yml @@ -0,0 +1,17 @@ +services: + mermaid: + image: ghcr.io/mermaid-js/mermaid-live-editor:latest + container_name: mermaid-live-editor + restart: always + networks: + - proxy-net + labels: + - "traefik.enable=true" + - "traefik.http.routers.mermaid.rule=Host(`mermaid.arch-services.mywire.org`)" + - "traefik.http.routers.mermaid.entrypoints=websecure" + - "traefik.http.routers.mermaid.tls.certresolver=myresolver" + - "traefik.http.services.mermaid.loadbalancer.server.port=8080" + +networks: + proxy-net: + external: true diff --git a/services/ollama/docker-compose.yml b/apps/ollama/docker-compose.yml similarity index 65% rename from services/ollama/docker-compose.yml rename to apps/ollama/docker-compose.yml index 8eaf266..3591dc1 100644 --- a/services/ollama/docker-compose.yml +++ b/apps/ollama/docker-compose.yml @@ -3,18 +3,25 @@ services: image: ollama/ollama:latest deploy: replicas: 3 + restart_policy: + condition: on-failure environment: - OLLAMA_HOST=0.0.0.0 + - OLLAMA_ACCELERATE_SYSTEM=1 + devices: + - /dev/dri:/dev/dri volumes: - ollama_data:/root/.ollama:rw networks: - - proxy-net # Use the hub network + - proxy-net labels: - "traefik.enable=true" - "traefik.http.routers.ollama.rule=Host(`ollama.arch-services.mywire.org`)" - "traefik.http.routers.ollama.entrypoints=websecure" - "traefik.http.routers.ollama.tls.certresolver=myresolver" - "traefik.http.services.ollama.loadbalancer.server.port=11434" + - "traefik.http.services.ollama.loadbalancer.healthcheck.path=/api/tags" + - "traefik.http.services.ollama.loadbalancer.healthcheck.interval=10s" volumes: ollama_data: diff --git a/core/docker-compose.yml b/core/docker-compose.yml deleted file mode 100644 index 3213396..0000000 --- a/core/docker-compose.yml +++ /dev/null @@ -1,30 +0,0 @@ -services: - traefik: - image: traefik:v3.6 - container_name: traefik - restart: always - ports: - - "80:80" - - "443:443" - environment: - - DYNU_API_KEY=${DYNU_API_KEY} - command: - - "--api.dashboard=true" - - "--providers.docker=true" - - "--providers.docker.exposedbydefault=false" - - "--entrypoints.web.address=:80" - - "--entrypoints.websecure.address=:443" - # SSL / DNS Challenge using variables - - "--certificatesresolvers.myresolver.acme.dnschallenge=true" - - "--certificatesresolvers.myresolver.acme.dnschallenge.provider=dynu" - - "--certificatesresolvers.myresolver.acme.email=${ACME_EMAIL}" - - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json" - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro - - ./letsencrypt:/letsencrypt - networks: - - proxy-net - -networks: - proxy-net: - external: true diff --git a/dashboard/.python-version b/dashboard/.python-version deleted file mode 100644 index 6324d40..0000000 --- a/dashboard/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.14 diff --git a/dashboard/index.html b/dashboard/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/dashboard/main.py b/dashboard/main.py deleted file mode 100644 index 072a3cb..0000000 --- a/dashboard/main.py +++ /dev/null @@ -1,26 +0,0 @@ -import docker -from fastapi import FastAPI - -app = FastAPI() -client = docker.from_env() - - -@app.get("/api/services") -def get_services(): - services = [] - # Filter for containers in our specific network - for container in client.containers.list(all=True): - networks = container.attrs["NetworkSettings"]["Networks"] - if "proxy-net" in networks: - services.append( - { - "name": container.name, - "status": container.status, # running, exited, etc. - "image": container.image.tags[0] if container.image.tags else "N/A", - "hostname": container.labels.get( - f"traefik.http.routers.{container.name}.rule", - "No Hostname", - ), - } - ) - return services diff --git a/dashboard/pyproject.toml b/dashboard/pyproject.toml deleted file mode 100644 index 62cfcd5..0000000 --- a/dashboard/pyproject.toml +++ /dev/null @@ -1,11 +0,0 @@ -[project] -name = "dashboard" -version = "0.1.0" -description = "Add your description here" -readme = "README.md" -requires-python = ">=3.14" -dependencies = [ - "fastapi", - "uvicorn", - "docker", -] diff --git a/dashboard/styles.css b/dashboard/styles.css deleted file mode 100644 index e69de29..0000000 diff --git a/dashboard/uv.lock b/dashboard/uv.lock deleted file mode 100644 index 06b3e3c..0000000 --- a/dashboard/uv.lock +++ /dev/null @@ -1,305 +0,0 @@ -version = 1 -revision = 3 -requires-python = ">=3.14" - -[[package]] -name = "annotated-doc" -version = "0.0.4" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288, upload-time = "2025-11-10T22:07:42.062Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303, upload-time = "2025-11-10T22:07:40.673Z" }, -] - -[[package]] -name = "annotated-types" -version = "0.7.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" }, -] - -[[package]] -name = "anyio" -version = "4.13.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "idna" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/19/14/2c5dd9f512b66549ae92767a9c7b330ae88e1932ca57876909410251fe13/anyio-4.13.0.tar.gz", hash = "sha256:334b70e641fd2221c1505b3890c69882fe4a2df910cba14d97019b90b24439dc", size = 231622, upload-time = "2026-03-24T12:59:09.671Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/da/42/e921fccf5015463e32a3cf6ee7f980a6ed0f395ceeaa45060b61d86486c2/anyio-4.13.0-py3-none-any.whl", hash = "sha256:08b310f9e24a9594186fd75b4f73f4a4152069e3853f1ed8bfbf58369f4ad708", size = 114353, upload-time = "2026-03-24T12:59:08.246Z" }, -] - -[[package]] -name = "certifi" -version = "2026.2.25" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/af/2d/7bf41579a8986e348fa033a31cdd0e4121114f6bce2457e8876010b092dd/certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7", size = 155029, upload-time = "2026-02-25T02:54:17.342Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/9a/3c/c17fb3ca2d9c3acff52e30b309f538586f9f5b9c9cf454f3845fc9af4881/certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa", size = 153684, upload-time = "2026-02-25T02:54:15.766Z" }, -] - -[[package]] -name = "charset-normalizer" -version = "3.4.7" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/e7/a1/67fe25fac3c7642725500a3f6cfe5821ad557c3abb11c9d20d12c7008d3e/charset_normalizer-3.4.7.tar.gz", hash = "sha256:ae89db9e5f98a11a4bf50407d4363e7b09b31e55bc117b4f7d80aab97ba009e5", size = 144271, upload-time = "2026-04-02T09:28:39.342Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/97/c8/c67cb8c70e19ef1960b97b22ed2a1567711de46c4ddf19799923adc836c2/charset_normalizer-3.4.7-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:c36c333c39be2dbca264d7803333c896ab8fa7d4d6f0ab7edb7dfd7aea6e98c0", size = 309234, upload-time = "2026-04-02T09:27:07.194Z" }, - { url = "https://files.pythonhosted.org/packages/99/85/c091fdee33f20de70d6c8b522743b6f831a2f1cd3ff86de4c6a827c48a76/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1c2aed2e5e41f24ea8ef1590b8e848a79b56f3a5564a65ceec43c9d692dc7d8a", size = 208042, upload-time = "2026-04-02T09:27:08.749Z" }, - { url = "https://files.pythonhosted.org/packages/87/1c/ab2ce611b984d2fd5d86a5a8a19c1ae26acac6bad967da4967562c75114d/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:54523e136b8948060c0fa0bc7b1b50c32c186f2fceee897a495406bb6e311d2b", size = 228706, upload-time = "2026-04-02T09:27:09.951Z" }, - { url = "https://files.pythonhosted.org/packages/a8/29/2b1d2cb00bf085f59d29eb773ce58ec2d325430f8c216804a0a5cd83cbca/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:715479b9a2802ecac752a3b0efa2b0b60285cf962ee38414211abdfccc233b41", size = 224727, upload-time = "2026-04-02T09:27:11.175Z" }, - { url = "https://files.pythonhosted.org/packages/47/5c/032c2d5a07fe4d4855fea851209cca2b6f03ebeb6d4e3afdb3358386a684/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bd6c2a1c7573c64738d716488d2cdd3c00e340e4835707d8fdb8dc1a66ef164e", size = 215882, upload-time = "2026-04-02T09:27:12.446Z" }, - { url = "https://files.pythonhosted.org/packages/2c/c2/356065d5a8b78ed04499cae5f339f091946a6a74f91e03476c33f0ab7100/charset_normalizer-3.4.7-cp314-cp314-manylinux_2_31_armv7l.whl", hash = "sha256:c45e9440fb78f8ddabcf714b68f936737a121355bf59f3907f4e17721b9d1aae", size = 200860, upload-time = "2026-04-02T09:27:13.721Z" }, - { url = "https://files.pythonhosted.org/packages/0c/cd/a32a84217ced5039f53b29f460962abb2d4420def55afabe45b1c3c7483d/charset_normalizer-3.4.7-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3534e7dcbdcf757da6b85a0bbf5b6868786d5982dd959b065e65481644817a18", size = 211564, upload-time = "2026-04-02T09:27:15.272Z" }, - { url = "https://files.pythonhosted.org/packages/44/86/58e6f13ce26cc3b8f4a36b94a0f22ae2f00a72534520f4ae6857c4b81f89/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:e8ac484bf18ce6975760921bb6148041faa8fef0547200386ea0b52b5d27bf7b", size = 211276, upload-time = "2026-04-02T09:27:16.834Z" }, - { url = "https://files.pythonhosted.org/packages/8f/fe/d17c32dc72e17e155e06883efa84514ca375f8a528ba2546bee73fc4df81/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a5fe03b42827c13cdccd08e6c0247b6a6d4b5e3cdc53fd1749f5896adcdc2356", size = 201238, upload-time = "2026-04-02T09:27:18.229Z" }, - { url = "https://files.pythonhosted.org/packages/6a/29/f33daa50b06525a237451cdb6c69da366c381a3dadcd833fa5676bc468b3/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:2d6eb928e13016cea4f1f21d1e10c1cebd5a421bc57ddf5b1142ae3f86824fab", size = 230189, upload-time = "2026-04-02T09:27:19.445Z" }, - { url = "https://files.pythonhosted.org/packages/b6/6e/52c84015394a6a0bdcd435210a7e944c5f94ea1055f5cc5d56c5fe368e7b/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e74327fb75de8986940def6e8dee4f127cc9752bee7355bb323cc5b2659b6d46", size = 211352, upload-time = "2026-04-02T09:27:20.79Z" }, - { url = "https://files.pythonhosted.org/packages/8c/d7/4353be581b373033fb9198bf1da3cf8f09c1082561e8e922aa7b39bf9fe8/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:d6038d37043bced98a66e68d3aa2b6a35505dc01328cd65217cefe82f25def44", size = 227024, upload-time = "2026-04-02T09:27:22.063Z" }, - { url = "https://files.pythonhosted.org/packages/30/45/99d18aa925bd1740098ccd3060e238e21115fffbfdcb8f3ece837d0ace6c/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7579e913a5339fb8fa133f6bbcfd8e6749696206cf05acdbdca71a1b436d8e72", size = 217869, upload-time = "2026-04-02T09:27:23.486Z" }, - { url = "https://files.pythonhosted.org/packages/5c/05/5ee478aa53f4bb7996482153d4bfe1b89e0f087f0ab6b294fcf92d595873/charset_normalizer-3.4.7-cp314-cp314-win32.whl", hash = "sha256:5b77459df20e08151cd6f8b9ef8ef1f961ef73d85c21a555c7eed5b79410ec10", size = 148541, upload-time = "2026-04-02T09:27:25.146Z" }, - { url = "https://files.pythonhosted.org/packages/48/77/72dcb0921b2ce86420b2d79d454c7022bf5be40202a2a07906b9f2a35c97/charset_normalizer-3.4.7-cp314-cp314-win_amd64.whl", hash = "sha256:92a0a01ead5e668468e952e4238cccd7c537364eb7d851ab144ab6627dbbe12f", size = 159634, upload-time = "2026-04-02T09:27:26.642Z" }, - { url = "https://files.pythonhosted.org/packages/c6/a3/c2369911cd72f02386e4e340770f6e158c7980267da16af8f668217abaa0/charset_normalizer-3.4.7-cp314-cp314-win_arm64.whl", hash = "sha256:67f6279d125ca0046a7fd386d01b311c6363844deac3e5b069b514ba3e63c246", size = 148384, upload-time = "2026-04-02T09:27:28.271Z" }, - { url = "https://files.pythonhosted.org/packages/94/09/7e8a7f73d24dba1f0035fbbf014d2c36828fc1bf9c88f84093e57d315935/charset_normalizer-3.4.7-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:effc3f449787117233702311a1b7d8f59cba9ced946ba727bdc329ec69028e24", size = 330133, upload-time = "2026-04-02T09:27:29.474Z" }, - { url = "https://files.pythonhosted.org/packages/8d/da/96975ddb11f8e977f706f45cddd8540fd8242f71ecdb5d18a80723dcf62c/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fbccdc05410c9ee21bbf16a35f4c1d16123dcdeb8a1d38f33654fa21d0234f79", size = 216257, upload-time = "2026-04-02T09:27:30.793Z" }, - { url = "https://files.pythonhosted.org/packages/e5/e8/1d63bf8ef2d388e95c64b2098f45f84758f6d102a087552da1485912637b/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:733784b6d6def852c814bce5f318d25da2ee65dd4839a0718641c696e09a2960", size = 234851, upload-time = "2026-04-02T09:27:32.44Z" }, - { url = "https://files.pythonhosted.org/packages/9b/40/e5ff04233e70da2681fa43969ad6f66ca5611d7e669be0246c4c7aaf6dc8/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a89c23ef8d2c6b27fd200a42aa4ac72786e7c60d40efdc76e6011260b6e949c4", size = 233393, upload-time = "2026-04-02T09:27:34.03Z" }, - { url = "https://files.pythonhosted.org/packages/be/c1/06c6c49d5a5450f76899992f1ee40b41d076aee9279b49cf9974d2f313d5/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6c114670c45346afedc0d947faf3c7f701051d2518b943679c8ff88befe14f8e", size = 223251, upload-time = "2026-04-02T09:27:35.369Z" }, - { url = "https://files.pythonhosted.org/packages/2b/9f/f2ff16fb050946169e3e1f82134d107e5d4ae72647ec8a1b1446c148480f/charset_normalizer-3.4.7-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:a180c5e59792af262bf263b21a3c49353f25945d8d9f70628e73de370d55e1e1", size = 206609, upload-time = "2026-04-02T09:27:36.661Z" }, - { url = "https://files.pythonhosted.org/packages/69/d5/a527c0cd8d64d2eab7459784fb4169a0ac76e5a6fc5237337982fd61347e/charset_normalizer-3.4.7-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3c9a494bc5ec77d43cea229c4f6db1e4d8fe7e1bbffa8b6f0f0032430ff8ab44", size = 220014, upload-time = "2026-04-02T09:27:38.019Z" }, - { url = "https://files.pythonhosted.org/packages/7e/80/8a7b8104a3e203074dc9aa2c613d4b726c0e136bad1cc734594b02867972/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8d828b6667a32a728a1ad1d93957cdf37489c57b97ae6c4de2860fa749b8fc1e", size = 218979, upload-time = "2026-04-02T09:27:39.37Z" }, - { url = "https://files.pythonhosted.org/packages/02/9a/b759b503d507f375b2b5c153e4d2ee0a75aa215b7f2489cf314f4541f2c0/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:cf1493cd8607bec4d8a7b9b004e699fcf8f9103a9284cc94962cb73d20f9d4a3", size = 209238, upload-time = "2026-04-02T09:27:40.722Z" }, - { url = "https://files.pythonhosted.org/packages/c2/4e/0f3f5d47b86bdb79256e7290b26ac847a2832d9a4033f7eb2cd4bcf4bb5b/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:0c96c3b819b5c3e9e165495db84d41914d6894d55181d2d108cc1a69bfc9cce0", size = 236110, upload-time = "2026-04-02T09:27:42.33Z" }, - { url = "https://files.pythonhosted.org/packages/96/23/bce28734eb3ed2c91dcf93abeb8a5cf393a7b2749725030bb630e554fdd8/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:752a45dc4a6934060b3b0dab47e04edc3326575f82be64bc4fc293914566503e", size = 219824, upload-time = "2026-04-02T09:27:43.924Z" }, - { url = "https://files.pythonhosted.org/packages/2c/6f/6e897c6984cc4d41af319b077f2f600fc8214eb2fe2d6bcb79141b882400/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:8778f0c7a52e56f75d12dae53ae320fae900a8b9b4164b981b9c5ce059cd1fcb", size = 233103, upload-time = "2026-04-02T09:27:45.348Z" }, - { url = "https://files.pythonhosted.org/packages/76/22/ef7bd0fe480a0ae9b656189ec00744b60933f68b4f42a7bb06589f6f576a/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ce3412fbe1e31eb81ea42f4169ed94861c56e643189e1e75f0041f3fe7020abe", size = 225194, upload-time = "2026-04-02T09:27:46.706Z" }, - { url = "https://files.pythonhosted.org/packages/c5/a7/0e0ab3e0b5bc1219bd80a6a0d4d72ca74d9250cb2382b7c699c147e06017/charset_normalizer-3.4.7-cp314-cp314t-win32.whl", hash = "sha256:c03a41a8784091e67a39648f70c5f97b5b6a37f216896d44d2cdcb82615339a0", size = 159827, upload-time = "2026-04-02T09:27:48.053Z" }, - { url = "https://files.pythonhosted.org/packages/7a/1d/29d32e0fb40864b1f878c7f5a0b343ae676c6e2b271a2d55cc3a152391da/charset_normalizer-3.4.7-cp314-cp314t-win_amd64.whl", hash = "sha256:03853ed82eeebbce3c2abfdbc98c96dc205f32a79627688ac9a27370ea61a49c", size = 174168, upload-time = "2026-04-02T09:27:49.795Z" }, - { url = "https://files.pythonhosted.org/packages/de/32/d92444ad05c7a6e41fb2036749777c163baf7a0301a040cb672d6b2b1ae9/charset_normalizer-3.4.7-cp314-cp314t-win_arm64.whl", hash = "sha256:c35abb8bfff0185efac5878da64c45dafd2b37fb0383add1be155a763c1f083d", size = 153018, upload-time = "2026-04-02T09:27:51.116Z" }, - { url = "https://files.pythonhosted.org/packages/db/8f/61959034484a4a7c527811f4721e75d02d653a35afb0b6054474d8185d4c/charset_normalizer-3.4.7-py3-none-any.whl", hash = "sha256:3dce51d0f5e7951f8bb4900c257dad282f49190fdbebecd4ba99bcc41fef404d", size = 61958, upload-time = "2026-04-02T09:28:37.794Z" }, -] - -[[package]] -name = "click" -version = "8.3.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "colorama", marker = "sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/57/75/31212c6bf2503fdf920d87fee5d7a86a2e3bcf444984126f13d8e4016804/click-8.3.2.tar.gz", hash = "sha256:14162b8b3b3550a7d479eafa77dfd3c38d9dc8951f6f69c78913a8f9a7540fd5", size = 302856, upload-time = "2026-04-03T19:14:45.118Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e4/20/71885d8b97d4f3dde17b1fdb92dbd4908b00541c5a3379787137285f602e/click-8.3.2-py3-none-any.whl", hash = "sha256:1924d2c27c5653561cd2cae4548d1406039cb79b858b747cfea24924bbc1616d", size = 108379, upload-time = "2026-04-03T19:14:43.505Z" }, -] - -[[package]] -name = "colorama" -version = "0.4.6" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, -] - -[[package]] -name = "dashboard" -version = "0.1.0" -source = { virtual = "." } -dependencies = [ - { name = "docker" }, - { name = "fastapi" }, - { name = "uvicorn" }, -] - -[package.metadata] -requires-dist = [ - { name = "docker" }, - { name = "fastapi" }, - { name = "uvicorn" }, -] - -[[package]] -name = "docker" -version = "7.1.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pywin32", marker = "sys_platform == 'win32'" }, - { name = "requests" }, - { name = "urllib3" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/91/9b/4a2ea29aeba62471211598dac5d96825bb49348fa07e906ea930394a83ce/docker-7.1.0.tar.gz", hash = "sha256:ad8c70e6e3f8926cb8a92619b832b4ea5299e2831c14284663184e200546fa6c", size = 117834, upload-time = "2024-05-23T11:13:57.216Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e3/26/57c6fb270950d476074c087527a558ccb6f4436657314bfb6cdf484114c4/docker-7.1.0-py3-none-any.whl", hash = "sha256:c96b93b7f0a746f9e77d325bcfb87422a3d8bd4f03136ae8a85b37f1898d5fc0", size = 147774, upload-time = "2024-05-23T11:13:55.01Z" }, -] - -[[package]] -name = "fastapi" -version = "0.136.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "annotated-doc" }, - { name = "pydantic" }, - { name = "starlette" }, - { name = "typing-extensions" }, - { name = "typing-inspection" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/4e/d9/e66315807e41e69e7f6a1b42a162dada2f249c5f06ad3f1a95f84ab336ef/fastapi-0.136.0.tar.gz", hash = "sha256:cf08e067cc66e106e102d9ba659463abfac245200752f8a5b7b1e813de4ff73e", size = 396607, upload-time = "2026-04-16T11:47:13.623Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/26/a3/0bd5f0cdb0bbc92650e8dc457e9250358411ee5d1b65e42b6632387daf81/fastapi-0.136.0-py3-none-any.whl", hash = "sha256:8793d44ec7378e2be07f8a013cf7f7aa47d6327d0dfe9804862688ec4541a6b4", size = 117556, upload-time = "2026-04-16T11:47:11.922Z" }, -] - -[[package]] -name = "h11" -version = "0.16.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, -] - -[[package]] -name = "idna" -version = "3.11" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" }, -] - -[[package]] -name = "pydantic" -version = "2.13.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "annotated-types" }, - { name = "pydantic-core" }, - { name = "typing-extensions" }, - { name = "typing-inspection" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/d9/e4/40d09941a2cebcb20609b86a559817d5b9291c49dd6f8c87e5feffbe703a/pydantic-2.13.3.tar.gz", hash = "sha256:af09e9d1d09f4e7fe37145c1f577e1d61ceb9a41924bf0094a36506285d0a84d", size = 844068, upload-time = "2026-04-20T14:46:43.632Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f3/0a/fd7d723f8f8153418fb40cf9c940e82004fce7e987026b08a68a36dd3fe7/pydantic-2.13.3-py3-none-any.whl", hash = "sha256:6db14ac8dfc9a1e57f87ea2c0de670c251240f43cb0c30a5130e9720dc612927", size = 471981, upload-time = "2026-04-20T14:46:41.402Z" }, -] - -[[package]] -name = "pydantic-core" -version = "2.46.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/2a/ef/f7abb56c49382a246fd2ce9c799691e3c3e7175ec74b14d99e798bcddb1a/pydantic_core-2.46.3.tar.gz", hash = "sha256:41c178f65b8c29807239d47e6050262eb6bf84eb695e41101e62e38df4a5bc2c", size = 471412, upload-time = "2026-04-20T14:40:56.672Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/7f/db/a7bcb4940183fda36022cd18ba8dd12f2dff40740ec7b58ce7457befa416/pydantic_core-2.46.3-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:afa3aa644f74e290cdede48a7b0bee37d1c35e71b05105f6b340d484af536d9b", size = 2097614, upload-time = "2026-04-20T14:44:38.374Z" }, - { url = "https://files.pythonhosted.org/packages/24/35/e4066358a22e3e99519db370494c7528f5a2aa1367370e80e27e20283543/pydantic_core-2.46.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ced3310e51aa425f7f77da8bbbb5212616655bedbe82c70944320bc1dbe5e018", size = 1951896, upload-time = "2026-04-20T14:40:53.996Z" }, - { url = "https://files.pythonhosted.org/packages/87/92/37cf4049d1636996e4b888c05a501f40a43ff218983a551d57f9d5e14f0d/pydantic_core-2.46.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e29908922ce9da1a30b4da490bd1d3d82c01dcfdf864d2a74aacee674d0bfa34", size = 1979314, upload-time = "2026-04-20T14:41:49.446Z" }, - { url = "https://files.pythonhosted.org/packages/d8/36/9ff4d676dfbdfb2d591cf43f3d90ded01e15b1404fd101180ed2d62a2fd3/pydantic_core-2.46.3-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0c9ff69140423eea8ed2d5477df3ba037f671f5e897d206d921bc9fdc39613e7", size = 2056133, upload-time = "2026-04-20T14:42:23.574Z" }, - { url = "https://files.pythonhosted.org/packages/bc/f0/405b442a4d7ba855b06eec8b2bf9c617d43b8432d099dfdc7bf999293495/pydantic_core-2.46.3-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b675ab0a0d5b1c8fdb81195dc5bcefea3f3c240871cdd7ff9a2de8aa50772eb2", size = 2228726, upload-time = "2026-04-20T14:44:22.816Z" }, - { url = "https://files.pythonhosted.org/packages/e7/f8/65cd92dd5a0bd89ba277a98ecbfaf6fc36bbd3300973c7a4b826d6ab1391/pydantic_core-2.46.3-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0087084960f209a9a4af50ecd1fb063d9ad3658c07bb81a7a53f452dacbfb2ba", size = 2301214, upload-time = "2026-04-20T14:44:48.792Z" }, - { url = "https://files.pythonhosted.org/packages/fd/86/ef96a4c6e79e7a2d0410826a68fbc0eccc0fd44aa733be199d5fcac3bb87/pydantic_core-2.46.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed42e6cc8e1b0e2b9b96e2276bad70ae625d10d6d524aed0c93de974ae029f9f", size = 2099927, upload-time = "2026-04-20T14:41:40.196Z" }, - { url = "https://files.pythonhosted.org/packages/6d/53/269caf30e0096e0a8a8f929d1982a27b3879872cca2d917d17c2f9fdf4fe/pydantic_core-2.46.3-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:f1771ce258afb3e4201e67d154edbbae712a76a6081079fe247c2f53c6322c22", size = 2128789, upload-time = "2026-04-20T14:41:15.868Z" }, - { url = "https://files.pythonhosted.org/packages/00/b0/1a6d9b6a587e118482910c244a1c5acf4d192604174132efd12bf0ac486f/pydantic_core-2.46.3-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a7610b6a5242a6c736d8ad47fd5fff87fcfe8f833b281b1c409c3d6835d9227f", size = 2173815, upload-time = "2026-04-20T14:44:25.152Z" }, - { url = "https://files.pythonhosted.org/packages/87/56/e7e00d4041a7e62b5a40815590114db3b535bf3ca0bf4dca9f16cef25246/pydantic_core-2.46.3-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:ff5e7783bcc5476e1db448bf268f11cb257b1c276d3e89f00b5727be86dd0127", size = 2181608, upload-time = "2026-04-20T14:41:28.933Z" }, - { url = "https://files.pythonhosted.org/packages/e8/22/4bd23c3d41f7c185d60808a1de83c76cf5aeabf792f6c636a55c3b1ec7f9/pydantic_core-2.46.3-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:9d2e32edcc143bc01e95300671915d9ca052d4f745aa0a49c48d4803f8a85f2c", size = 2326968, upload-time = "2026-04-20T14:42:03.962Z" }, - { url = "https://files.pythonhosted.org/packages/24/ac/66cd45129e3915e5ade3b292cb3bc7fd537f58f8f8dbdaba6170f7cabb74/pydantic_core-2.46.3-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6e42d83d1c6b87fa56b521479cff237e626a292f3b31b6345c15a99121b454c1", size = 2369842, upload-time = "2026-04-20T14:41:35.52Z" }, - { url = "https://files.pythonhosted.org/packages/a2/51/dd4248abb84113615473aa20d5545b7c4cd73c8644003b5259686f93996c/pydantic_core-2.46.3-cp314-cp314-win32.whl", hash = "sha256:07bc6d2a28c3adb4f7c6ae46aa4f2d2929af127f587ed44057af50bf1ce0f505", size = 1959661, upload-time = "2026-04-20T14:41:00.042Z" }, - { url = "https://files.pythonhosted.org/packages/20/eb/59980e5f1ae54a3b86372bd9f0fa373ea2d402e8cdcd3459334430f91e91/pydantic_core-2.46.3-cp314-cp314-win_amd64.whl", hash = "sha256:8940562319bc621da30714617e6a7eaa6b98c84e8c685bcdc02d7ed5e7c7c44e", size = 2071686, upload-time = "2026-04-20T14:43:16.471Z" }, - { url = "https://files.pythonhosted.org/packages/8c/db/1cf77e5247047dfee34bc01fa9bca134854f528c8eb053e144298893d370/pydantic_core-2.46.3-cp314-cp314-win_arm64.whl", hash = "sha256:5dcbbcf4d22210ced8f837c96db941bdb078f419543472aca5d9a0bb7cddc7df", size = 2026907, upload-time = "2026-04-20T14:43:31.732Z" }, - { url = "https://files.pythonhosted.org/packages/57/c0/b3df9f6a543276eadba0a48487b082ca1f201745329d97dbfa287034a230/pydantic_core-2.46.3-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:d0fe3dce1e836e418f912c1ad91c73357d03e556a4d286f441bf34fed2dbeecf", size = 2095047, upload-time = "2026-04-20T14:42:37.982Z" }, - { url = "https://files.pythonhosted.org/packages/66/57/886a938073b97556c168fd99e1a7305bb363cd30a6d2c76086bf0587b32a/pydantic_core-2.46.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:9ce92e58abc722dac1bf835a6798a60b294e48eb0e625ec9fd994b932ac5feee", size = 1934329, upload-time = "2026-04-20T14:43:49.655Z" }, - { url = "https://files.pythonhosted.org/packages/0b/7c/b42eaa5c34b13b07ecb51da21761297a9b8eb43044c864a035999998f328/pydantic_core-2.46.3-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a03e6467f0f5ab796a486146d1b887b2dc5e5f9b3288898c1b1c3ad974e53e4a", size = 1974847, upload-time = "2026-04-20T14:42:10.737Z" }, - { url = "https://files.pythonhosted.org/packages/e6/9b/92b42db6543e7de4f99ae977101a2967b63122d4b6cf7773812da2d7d5b5/pydantic_core-2.46.3-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2798b6ba041b9d70acfb9071a2ea13c8456dd1e6a5555798e41ba7b0790e329c", size = 2041742, upload-time = "2026-04-20T14:40:44.262Z" }, - { url = "https://files.pythonhosted.org/packages/0f/19/46fbe1efabb5aa2834b43b9454e70f9a83ad9c338c1291e48bdc4fecf167/pydantic_core-2.46.3-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9be3e221bdc6d69abf294dcf7aff6af19c31a5cdcc8f0aa3b14be29df4bd03b1", size = 2236235, upload-time = "2026-04-20T14:41:27.307Z" }, - { url = "https://files.pythonhosted.org/packages/77/da/b3f95bc009ad60ec53120f5d16c6faa8cabdbe8a20d83849a1f2b8728148/pydantic_core-2.46.3-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f13936129ce841f2a5ddf6f126fea3c43cd128807b5a59588c37cf10178c2e64", size = 2282633, upload-time = "2026-04-20T14:44:33.271Z" }, - { url = "https://files.pythonhosted.org/packages/cc/6e/401336117722e28f32fb8220df676769d28ebdf08f2f4469646d404c43a3/pydantic_core-2.46.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:28b5f2ef03416facccb1c6ef744c69793175fd27e44ef15669201601cf423acb", size = 2109679, upload-time = "2026-04-20T14:44:41.065Z" }, - { url = "https://files.pythonhosted.org/packages/fc/53/b289f9bc8756a32fe718c46f55afaeaf8d489ee18d1a1e7be1db73f42cc4/pydantic_core-2.46.3-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:830d1247d77ad23852314f069e9d7ddafeec5f684baf9d7e7065ed46a049c4e6", size = 2108342, upload-time = "2026-04-20T14:42:50.144Z" }, - { url = "https://files.pythonhosted.org/packages/10/5b/8292fc7c1f9111f1b2b7c1b0dcf1179edcd014fc3ea4517499f50b829d71/pydantic_core-2.46.3-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0793c90c1a3c74966e7975eaef3ed30ebdff3260a0f815a62a22adc17e4c01c", size = 2157208, upload-time = "2026-04-20T14:42:08.133Z" }, - { url = "https://files.pythonhosted.org/packages/2b/9e/f80044e9ec07580f057a89fc131f78dda7a58751ddf52bbe05eaf31db50f/pydantic_core-2.46.3-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:d2d0aead851b66f5245ec0c4fb2612ef457f8bbafefdf65a2bf9d6bac6140f47", size = 2167237, upload-time = "2026-04-20T14:42:25.412Z" }, - { url = "https://files.pythonhosted.org/packages/f8/84/6781a1b037f3b96be9227edbd1101f6d3946746056231bf4ac48cdff1a8d/pydantic_core-2.46.3-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:2f40e4246676beb31c5ce77c38a55ca4e465c6b38d11ea1bd935420568e0b1ab", size = 2312540, upload-time = "2026-04-20T14:40:40.313Z" }, - { url = "https://files.pythonhosted.org/packages/3e/db/19c0839feeb728e7df03255581f198dfdf1c2aeb1e174a8420b63c5252e5/pydantic_core-2.46.3-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:cf489cf8986c543939aeee17a09c04d6ffb43bfef8ca16fcbcc5cfdcbed24dba", size = 2369556, upload-time = "2026-04-20T14:41:09.427Z" }, - { url = "https://files.pythonhosted.org/packages/e0/15/3228774cb7cd45f5f721ddf1b2242747f4eb834d0c491f0c02d606f09fed/pydantic_core-2.46.3-cp314-cp314t-win32.whl", hash = "sha256:ffe0883b56cfc05798bf994164d2b2ff03efe2d22022a2bb080f3b626176dd56", size = 1949756, upload-time = "2026-04-20T14:41:25.717Z" }, - { url = "https://files.pythonhosted.org/packages/b8/2a/c79cf53fd91e5a87e30d481809f52f9a60dd221e39de66455cf04deaad37/pydantic_core-2.46.3-cp314-cp314t-win_amd64.whl", hash = "sha256:706d9d0ce9cf4593d07270d8e9f53b161f90c57d315aeec4fb4fd7a8b10240d8", size = 2051305, upload-time = "2026-04-20T14:43:18.627Z" }, - { url = "https://files.pythonhosted.org/packages/0b/db/d8182a7f1d9343a032265aae186eb063fe26ca4c40f256b21e8da4498e89/pydantic_core-2.46.3-cp314-cp314t-win_arm64.whl", hash = "sha256:77706aeb41df6a76568434701e0917da10692da28cb69d5fb6919ce5fdb07374", size = 2026310, upload-time = "2026-04-20T14:41:01.778Z" }, -] - -[[package]] -name = "pywin32" -version = "311" -source = { registry = "https://pypi.org/simple" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c9/31/097f2e132c4f16d99a22bfb777e0fd88bd8e1c634304e102f313af69ace5/pywin32-311-cp314-cp314-win32.whl", hash = "sha256:b7a2c10b93f8986666d0c803ee19b5990885872a7de910fc460f9b0c2fbf92ee", size = 8840714, upload-time = "2025-07-14T20:13:32.449Z" }, - { url = "https://files.pythonhosted.org/packages/90/4b/07c77d8ba0e01349358082713400435347df8426208171ce297da32c313d/pywin32-311-cp314-cp314-win_amd64.whl", hash = "sha256:3aca44c046bd2ed8c90de9cb8427f581c479e594e99b5c0bb19b29c10fd6cb87", size = 9656800, upload-time = "2025-07-14T20:13:34.312Z" }, - { url = "https://files.pythonhosted.org/packages/c0/d2/21af5c535501a7233e734b8af901574572da66fcc254cb35d0609c9080dd/pywin32-311-cp314-cp314-win_arm64.whl", hash = "sha256:a508e2d9025764a8270f93111a970e1d0fbfc33f4153b388bb649b7eec4f9b42", size = 8932540, upload-time = "2025-07-14T20:13:36.379Z" }, -] - -[[package]] -name = "requests" -version = "2.33.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "certifi" }, - { name = "charset-normalizer" }, - { name = "idna" }, - { name = "urllib3" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/5f/a4/98b9c7c6428a668bf7e42ebb7c79d576a1c3c1e3ae2d47e674b468388871/requests-2.33.1.tar.gz", hash = "sha256:18817f8c57c6263968bc123d237e3b8b08ac046f5456bd1e307ee8f4250d3517", size = 134120, upload-time = "2026-03-30T16:09:15.531Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d7/8e/7540e8a2036f79a125c1d2ebadf69ed7901608859186c856fa0388ef4197/requests-2.33.1-py3-none-any.whl", hash = "sha256:4e6d1ef462f3626a1f0a0a9c42dd93c63bad33f9f1c1937509b8c5c8718ab56a", size = 64947, upload-time = "2026-03-30T16:09:13.83Z" }, -] - -[[package]] -name = "starlette" -version = "1.0.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "anyio" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/81/69/17425771797c36cded50b7fe44e850315d039f28b15901ab44839e70b593/starlette-1.0.0.tar.gz", hash = "sha256:6a4beaf1f81bb472fd19ea9b918b50dc3a77a6f2e190a12954b25e6ed5eea149", size = 2655289, upload-time = "2026-03-22T18:29:46.779Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/0b/c9/584bc9651441b4ba60cc4d557d8a547b5aff901af35bda3a4ee30c819b82/starlette-1.0.0-py3-none-any.whl", hash = "sha256:d3ec55e0bb321692d275455ddfd3df75fff145d009685eb40dc91fc66b03d38b", size = 72651, upload-time = "2026-03-22T18:29:45.111Z" }, -] - -[[package]] -name = "typing-extensions" -version = "4.15.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, -] - -[[package]] -name = "typing-inspection" -version = "0.4.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" }, -] - -[[package]] -name = "urllib3" -version = "2.6.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" }, -] - -[[package]] -name = "uvicorn" -version = "0.44.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "click" }, - { name = "h11" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/5e/da/6eee1ff8b6cbeed47eeb5229749168e81eb4b7b999a1a15a7176e51410c9/uvicorn-0.44.0.tar.gz", hash = "sha256:6c942071b68f07e178264b9152f1f16dfac5da85880c4ce06366a96d70d4f31e", size = 86947, upload-time = "2026-04-06T09:23:22.826Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/23/a5bbd9600dd607411fa644c06ff4951bec3a4d82c4b852374024359c19c0/uvicorn-0.44.0-py3-none-any.whl", hash = "sha256:ce937c99a2cc70279556967274414c087888e8cec9f9c94644dfca11bd3ced89", size = 69425, upload-time = "2026-04-06T09:23:21.524Z" }, -] diff --git a/down.sh b/down.sh new file mode 100755 index 0000000..96f7417 --- /dev/null +++ b/down.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +stop_stack() { + local stack_path=$1 + if [ -f "$stack_path/docker-compose.yml" ]; then + echo "Stopping stack: $stack_path..." + docker compose -f "$stack_path/docker-compose.yml" down + fi +} + +echo "=== Stopping Application Layer ===" +for app_dir in apps/*/; do + stop_stack "${app_dir%/}" +done + +echo "=== Stopping Infrastructure Layer ===" +stop_stack "infra/dozzle" +stop_stack "infra/diun" +stop_stack "infra/watchtower" +stop_stack "infra/portainer" +stop_stack "infra/authelia" +stop_stack "infra/core" + +echo "All services stopped." diff --git a/infra/authelia/config/configuration.yml b/infra/authelia/config/configuration.yml new file mode 100644 index 0000000..2957579 --- /dev/null +++ b/infra/authelia/config/configuration.yml @@ -0,0 +1,43 @@ +server: + address: tcp://0.0.0.0:9091 + +log: + level: info + +totp: + issuer: authelia.com + +authentication_backend: + file: + path: /config/users.yml + +access_control: + default_policy: deny + rules: + - domain: "auth.arch-services.mywire.org" + policy: bypass + - domain: "*.arch-services.mywire.org" + policy: one_factor + +session: + name: authelia_session + secret: "{{ env \"AUTHELIA_SESSION_SECRET\" }}" + expiration: 3600 + inactivity: 300 + remember_me: 1M + cookies: + - domain: arch-services.mywire.org + authelia_url: https://auth.arch-services.mywire.org + +identity_validation: + reset_password: + jwt_secret: "{{ env \"AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET\" }}" + +storage: + local: + path: /config/db.sqlite3 + encryption_key: "{{ env \"AUTHELIA_STORAGE_ENCRYPTION_KEY\" }}" + +notifier: + filesystem: + filename: /config/emails.txt diff --git a/infra/authelia/docker-compose.yml b/infra/authelia/docker-compose.yml new file mode 100644 index 0000000..b391f45 --- /dev/null +++ b/infra/authelia/docker-compose.yml @@ -0,0 +1,22 @@ +services: + authelia: + image: authelia/authelia:latest + container_name: authelia + restart: always + volumes: + - ./config:/config + networks: + - proxy-net + labels: + - "traefik.enable=true" + - "traefik.http.routers.authelia.rule=Host(`auth.arch-services.mywire.org`)" + - "traefik.http.routers.authelia.entrypoints=websecure" + - "traefik.http.routers.authelia.tls.certresolver=myresolver" + # This label defines the middleware that other services will use + - "traefik.http.middlewares.authelia-auth.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.arch-services.mywire.org/" + - "traefik.http.middlewares.authelia-auth.forwardauth.trustForwardHeader=true" + - "traefik.http.middlewares.authelia-auth.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email" + +networks: + proxy-net: + external: true diff --git a/.env-example b/infra/core/.env-example similarity index 100% rename from .env-example rename to infra/core/.env-example diff --git a/infra/core/docker-compose.yml b/infra/core/docker-compose.yml new file mode 100644 index 0000000..d54970e --- /dev/null +++ b/infra/core/docker-compose.yml @@ -0,0 +1,88 @@ +services: + socket-proxy: + image: tecnativa/docker-socket-proxy + container_name: socket-proxy + restart: always + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro # Only place the real socket is mounted + environment: + - CONTAINERS=1 # Traefik needs to see containers + - NETWORKS=1 # Traefik needs to see networks + - SERVICES=1 + - TASKS=1 + - IMAGES=1 # Needed for Watchtower/Portainer + - VOLUMES=1 # Needed for Portainer + - POST=1 # Needed for Portainer/Watchtower to start/stop/create containers + - DELETE=1 # Needed for Portainer/Watchtower to remove containers/images + - DOCKER_API_VERSION=1.40 + - VERSION=1 # Allow Traefik to query version + - INFO=1 # Allow Traefik to query info + - EVENTS=1 # Allow Traefik to monitor container changes + - PING=1 # Allow Traefik to check Docker health + - BUILD=0 + - COMMIT=0 + - CONFIGS=0 + - DISTRIBUTION=0 + - EXEC=0 + - NODES=0 + - PLUGINS=0 + - SECRETS=0 + - SWARM=0 + - SYSTEM=0 + networks: + - socket-net + + traefik: + image: traefik:v3.6 + container_name: traefik + restart: always + depends_on: + - socket-proxy + ports: + - "80:80" + - "443:443" + environment: + - DYNU_API_KEY=${DYNU_API_KEY} + - DOCKER_API_VERSION=1.40 + command: + - "--api.dashboard=true" + - "--providers.docker=true" + - "--providers.docker.endpoint=tcp://socket-proxy:2375" + - "--providers.docker.exposedByDefault=false" + - "--entrypoints.web.address=:80" + - "--entrypoints.web.http.redirections.entryPoint.to=websecure" + - "--entrypoints.web.http.redirections.entryPoint.scheme=https" + - "--entrypoints.websecure.address=:443" + # SSL Setup + - "--certificatesresolvers.myresolver.acme.dnschallenge=true" + - "--certificatesresolvers.myresolver.acme.dnschallenge.provider=dynu" + - "--certificatesresolvers.myresolver.acme.email=${ACME_EMAIL}" + - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json" + volumes: + - ./letsencrypt:/letsencrypt + networks: + - socket-net + - proxy-net + labels: + - "traefik.enable=true" + # Authelia Middleware + - "traefik.http.middlewares.authelia-auth.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.arch-services.mywire.org/" + - "traefik.http.middlewares.authelia-auth.forwardauth.trustForwardHeader=true" + - "traefik.http.middlewares.authelia-auth.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email" + # Dashboard + - "traefik.http.routers.traefik-dash.rule=Host(`traefik.arch-services.mywire.org`)" + - "traefik.http.routers.traefik-dash.entrypoints=websecure" + - "traefik.http.routers.traefik-dash.tls.certresolver=myresolver" + - "traefik.http.routers.traefik-dash.service=api@internal" + - "traefik.http.routers.traefik-dash.middlewares=authelia-auth" + logging: + driver: "json-file" + options: + max-size: "10m" + max-file: "3" + +networks: + socket-net: + external: true + proxy-net: + external: true diff --git a/dashboard/frontend.js b/infra/core/traefik.yml similarity index 100% rename from dashboard/frontend.js rename to infra/core/traefik.yml diff --git a/infra/diun/docker-compose.yml b/infra/diun/docker-compose.yml new file mode 100644 index 0000000..f4e2aee --- /dev/null +++ b/infra/diun/docker-compose.yml @@ -0,0 +1,23 @@ +services: + diun: + image: crazymax/diun:latest + container_name: diun + restart: always + command: serve + environment: + - TZ=UTC + - LOG_LEVEL=info + - LOG_JSON=false + - DIUN_WATCH_WORKERS=20 + - DIUN_WATCH_SCHEDULE=0 */6 * * * + - DIUN_PROVIDERS_DOCKER=true + - DIUN_PROVIDERS_DOCKER_ENDPOINT=tcp://socket-proxy:2375 + - DOCKER_API_VERSION=1.40 + volumes: + - "./data:/data" + networks: + - socket-net + +networks: + socket-net: + external: true diff --git a/services/dozzle/docker-compose.yml b/infra/dozzle/docker-compose.yml similarity index 64% rename from services/dozzle/docker-compose.yml rename to infra/dozzle/docker-compose.yml index 8d6f15d..57f7b78 100644 --- a/services/dozzle/docker-compose.yml +++ b/infra/dozzle/docker-compose.yml @@ -2,16 +2,21 @@ services: dozzle: image: amir20/dozzle:latest container_name: dozzle - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro + environment: + - DOCKER_HOST=tcp://socket-proxy:2375 + - DOCKER_API_VERSION=1.40 networks: - proxy-net + - socket-net labels: - "traefik.enable=true" - "traefik.http.routers.logs.rule=Host(`logs.arch-services.mywire.org`)" - "traefik.http.routers.logs.entrypoints=websecure" - "traefik.http.routers.logs.tls.certresolver=myresolver" + - "traefik.http.routers.logs.middlewares=authelia-auth@docker" networks: proxy-net: external: true + socket-net: + external: true diff --git a/infra/portainer/docker-compose.yml b/infra/portainer/docker-compose.yml new file mode 100644 index 0000000..01f3096 --- /dev/null +++ b/infra/portainer/docker-compose.yml @@ -0,0 +1,26 @@ +services: + 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" + - "traefik.http.routers.portainer.rule=Host(`portainer.arch-services.mywire.org`)" + - "traefik.http.routers.portainer.entrypoints=websecure" + - "traefik.http.routers.portainer.tls.certresolver=myresolver" + - "traefik.http.services.portainer.loadbalancer.server.port=9000" + +networks: + socket-net: + external: true + proxy-net: + external: true + +volumes: + portainer_data: diff --git a/infra/watchtower/docker-compose.yml b/infra/watchtower/docker-compose.yml new file mode 100644 index 0000000..d1cc805 --- /dev/null +++ b/infra/watchtower/docker-compose.yml @@ -0,0 +1,16 @@ +services: + watchtower: + image: containrrr/watchtower + container_name: watchtower + restart: always + environment: + - DOCKER_HOST=tcp://socket-proxy:2375 + - DOCKER_API_VERSION=1.40 + - WATCHTOWER_CLEANUP=true + - WATCHTOWER_LABEL_ENABLE=true + networks: + - socket-net + +networks: + socket-net: + external: true diff --git a/services/excalidraw/docker-compose.yml b/services/excalidraw/docker-compose.yml deleted file mode 100644 index e69de29..0000000 diff --git a/services/mermaid/docker-compose.yml b/services/mermaid/docker-compose.yml deleted file mode 100644 index e69de29..0000000 diff --git a/up.sh b/up.sh index f7a190d..953540c 100755 --- a/up.sh +++ b/up.sh @@ -1,23 +1,49 @@ #!/bin/bash -# Ensure the shared network exists -docker network inspect proxy-net >/dev/null 2>&1 || \ - docker network create proxy-net +# --- 1. NETWORK & PERMISSIONS --- +docker network inspect proxy-net >/dev/null 2>&1 || docker network create proxy-net +docker network inspect socket-net >/dev/null 2>&1 || docker network create socket-net -# CRITICAL: Traefik SSL file permissions -mkdir -p core/letsencrypt -touch core/letsencrypt/acme.json -chmod 600 core/letsencrypt/acme.json +# SSL Permissions (Moved to infra/core) +sudo mkdir -p infra/core/letsencrypt +sudo touch infra/core/letsencrypt/acme.json +sudo chmod 600 infra/core/letsencrypt/acme.json +sudo chown root:root infra/core/letsencrypt/acme.json -# Function to start a service -start_service() { - echo "Starting $1..." - # Using -f allows us to stay in root and avoid 'cd' headaches - docker compose -f "$1/docker-compose.yml" up -d +# --- 2. HELPER FUNCTIONS --- +start_stack() { + local stack_path=$1 + if [ -f "$stack_path/docker-compose.yml" ]; then + echo "Starting stack: $stack_path..." + docker compose -f "$stack_path/docker-compose.yml" up -d + else + echo "Warning: No docker-compose.yml found in $stack_path" + fi } -start_service "core" -start_service "services/dozzle" -start_service "services/excalidraw" +# --- 3. INFRASTRUCTURE LAYER (Control Plane) --- +echo "=== Deploying Infrastructure Layer ===" +start_stack "infra/core" +start_stack "infra/authelia" +start_stack "infra/portainer" +start_stack "infra/watchtower" +start_stack "infra/diun" +start_stack "infra/dozzle" +echo "Infrastructure is ready." +echo "" -echo "Arch-traefik-hub is up!" +# --- 4. APPLICATION LAYER (Data Plane) --- +if [[ "$1" == "--infra-only" ]]; then + echo "Skipping Application Layer as requested." +else + echo "=== Deploying Application Layer ===" + # Dynamically start all apps in the apps/ directory + for app_dir in apps/*/; do + start_stack "${app_dir%/}" + done + echo "Applications are ready." +fi + +echo "" +echo "Hardened Private Cloud Deployment Complete." +echo "Usage: ./up.sh [--infra-only]"