Files
nixos-core/apps/learning/docker-compose.yml
T
kiskaadee a8d75037de feat: integrate autonomous learning kanban into homepage dashboard
- Refactored Learning Hub into a headless API with system/docker monitoring endpoints.
- Implemented autonomous JavaScript-based Kanban board injection for homepage.
- Added full CRUD support for courses directly from the main dashboard.
- Optimized layout for full-width workspace and improved mobile responsiveness.
- Updated system monitoring to target /home partition and fixed widget API errors.
2026-05-15 13:52:06 -05:00

35 lines
1.1 KiB
YAML

services:
learning-hub:
image: python:3.11-slim
container_name: learning-hub
working_dir: /app
volumes:
- .:/app
- /var/run/docker.sock:/var/run/docker.sock
- /home:/home:ro
command: >
sh -c "pip install fastapi uvicorn sqlalchemy psutil docker && python -m app.main"
networks:
- proxy-net
labels:
- "traefik.enable=true"
# Public (HTTPS)
- "traefik.http.routers.learning.rule=Host(`learning.arch-services.mywire.org`)"
- "traefik.http.routers.learning.entrypoints=websecure"
- "traefik.http.routers.learning.tls=true"
# Public (Redirect)
- "traefik.http.routers.learning-red.rule=Host(`learning.arch-services.mywire.org`)"
- "traefik.http.routers.learning-red.entrypoints=web"
- "traefik.http.routers.learning-red.middlewares=https-redirect@docker"
# Local (HTTP)
- "traefik.http.routers.learning-local.rule=Host(`learning.localhost`)"
- "traefik.http.routers.learning-local.entrypoints=web"
- "traefik.http.services.learning.loadbalancer.server.port=8000"
networks:
proxy-net:
external: true