This commit performs a major overhaul of the homeserver architecture,
transitioning from a flat service structure to a layered approach that
separates user-facing applications from core infrastructure.
Key Changes:
- Reorganized directory structure:
- Moved application services (Gitea, Ollama, Excalidraw, etc.) to 'apps/'.
- Moved core infrastructure (Traefik, Authelia, Portainer, etc.) to 'infra/'.
- Replaced the custom Python dashboard with 'homepage' for centralized
service discovery and health monitoring.
- Expanded infrastructure capabilities:
- Integrated Authelia for centralized authentication and SSO.
- Added Portainer for container management and Watchtower for updates.
- Implemented Diun for image update notifications.
- Modernized gateway configuration:
- Relocated Traefik configuration to 'infra/core/'.
- Standardized environment variables via 'infra/core/.env-example'.
- Optimized lifecycle management:
- Rewrote 'up.sh' and 'down.sh' to handle the new directory hierarchy
with support for '--infra-only' deployments.
- Security and Documentation:
- Added SECURITY.md and updated README.md to reflect the new architecture.
- Hardened .gitignore to exclude application logs and sensitive data.
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
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
|