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.
24 lines
505 B
YAML
24 lines
505 B
YAML
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
|