feat(dashboard): consolidate homepage portal and learning kanban backend into single stack
This commit is contained in:
1 parent
5665965ab7
commit
54bcb9eedd
3 files changed
+50
-12
No files matched your search
@@ -1,4 +1,7 @@
|
||||
.env
|
||||
*.log
|
||||
logs/
|
||||
learning/data/
|
||||
learning/.venv/
|
||||
learning/__pycache__/
|
||||
.DS_Store
|
||||
@@ -1,25 +1,33 @@
|
||||
# 📊 Homelab Dashboard (getHomepage)
|
||||
# 📊 Homelab Dashboard (getHomepage + Learning Hub)
|
||||
|
||||
Standalone personal navigation dashboard and application launcher for the homelab infrastructure.
|
||||
Unified personal portal for the homelab infrastructure, combining:
|
||||
1. **getHomepage**: Service catalog, dynamic system widgets, and bookmark launcher.
|
||||
2. **Learning API (FastAPI + Turso)**: Backend service powering the embedded interactive Kanban board in the dashboard UI.
|
||||
|
||||
Part of the [homelab-core](https://github.com/kiskaadee/homelab-core) cluster ecosystem.
|
||||
|
||||
---
|
||||
|
||||
## 🏗️ Architecture & Requirements
|
||||
## 🏗️ Architecture & Stack
|
||||
|
||||
- **Compositor / Proxy**: Traefik (attached to `proxy-net` & `socket-net`)
|
||||
- **Domain**: `dashboard.arch-services.mywire.org` (or `dashboard.roadtotech.me`)
|
||||
- **Container Image**: `ghcr.io/gethomepage/homepage:latest`
|
||||
- **Dashboard**: `ghcr.io/gethomepage/homepage:latest` (Port `3000`)
|
||||
- **Learning Backend**: Custom Python/FastAPI app in `./learning/` (Port `8000`)
|
||||
- **Database**: Cloud Turso / LibSQL
|
||||
- **Ingress**: Traefik (attached to `proxy-net` & `socket-net`)
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ Environment Variables & Configuration
|
||||
## ⚙️ Environment Variables & Secrets
|
||||
|
||||
Decrypted globally from SOPS via `/run/secrets/rendered/traefik-deployments.env`:
|
||||
|
||||
| Variable | Description | Default / Example |
|
||||
| :--- | :--- | :--- |
|
||||
| `SERVICE_DOMAIN` | FQDN routed by Traefik | `dashboard.arch-services.mywire.org` |
|
||||
| `PROXY_NETWORK` | External Docker network | `proxy-net` |
|
||||
| `SERVICE_DOMAIN` | Dashboard FQDN | `dashboard.arch-services.mywire.org` |
|
||||
| `LEARNING_DOMAIN` | Learning Backend API FQDN | `learning.arch-services.mywire.org` |
|
||||
| `TURSO_DATABASE_URL` | Turso connection string | Loaded from SOPS |
|
||||
| `TURSO_AUTH_TOKEN` | Turso authentication token | Loaded from SOPS |
|
||||
| `PROXY_NETWORK` | Docker gateway network | `proxy-net` |
|
||||
|
||||
---
|
||||
|
||||
@@ -27,11 +35,11 @@ Part of the [homelab-core](https://github.com/kiskaadee/homelab-core) cluster ec
|
||||
|
||||
### Via Orchestrator (`appctl`)
|
||||
```bash
|
||||
appctl up dashboard
|
||||
appctl logs dashboard
|
||||
appctl up homelab-dashboard
|
||||
appctl logs homelab-dashboard
|
||||
```
|
||||
|
||||
### Manual Deployment
|
||||
```bash
|
||||
docker compose up -d
|
||||
docker compose up --build -d
|
||||
```
|
||||
@@ -12,15 +12,42 @@ services:
|
||||
- socket-net
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# Public (HTTPS)
|
||||
- "traefik.http.routers.homepage.rule=Host(`${SERVICE_DOMAIN:-dashboard.arch-services.mywire.org}`)"
|
||||
- "traefik.http.routers.homepage.entrypoints=websecure"
|
||||
- "traefik.http.routers.homepage.tls=true"
|
||||
- "traefik.http.routers.homepage.service=homepage-svc"
|
||||
# Public (Redirect)
|
||||
- "traefik.http.routers.homepage-red.rule=Host(`${SERVICE_DOMAIN:-dashboard.arch-services.mywire.org}`)"
|
||||
- "traefik.http.routers.homepage-red.entrypoints=web"
|
||||
- "traefik.http.routers.homepage-red.middlewares=https-redirect@docker"
|
||||
- "traefik.http.services.homepage-svc.loadbalancer.server.port=3000"
|
||||
|
||||
learning-api:
|
||||
build: ./learning
|
||||
container_name: learning-hub
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./learning/data:/app/data
|
||||
environment:
|
||||
- TURSO_DATABASE_URL=${TURSO_DATABASE_URL}
|
||||
- TURSO_AUTH_TOKEN=${TURSO_AUTH_TOKEN}
|
||||
networks:
|
||||
- proxy-net
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# HTTPS Router
|
||||
- "traefik.http.routers.learning.rule=Host(`${LEARNING_DOMAIN:-learning.arch-services.mywire.org}`)"
|
||||
- "traefik.http.routers.learning.entrypoints=websecure"
|
||||
- "traefik.http.routers.learning.tls=true"
|
||||
- "traefik.http.routers.learning.service=learning-svc"
|
||||
# HTTP to HTTPS Redirect
|
||||
- "traefik.http.routers.learning-red.rule=Host(`${LEARNING_DOMAIN:-learning.arch-services.mywire.org}`)"
|
||||
- "traefik.http.routers.learning-red.entrypoints=web"
|
||||
- "traefik.http.routers.learning-red.middlewares=https-redirect@docker"
|
||||
# Service Definition
|
||||
- "traefik.http.services.learning-svc.loadbalancer.server.port=${APP_PORT:-8000}"
|
||||
|
||||
networks:
|
||||
proxy-net:
|
||||
external: true
|
||||
|
||||
Reference in new issue
Block a user