This commit restructures the homeserver repository to isolate the core gateway and management tools (Control Plane) from user applications (Data Plane). This allows applications to have independent lifecycles and CI/CD pipelines, preventing git history contamination.
- Relocated user applications (excalidraw, gitea, jellyfin, learning-hub, mermaid, ollama) to an external deployments directory.
- Moved homepage to the root directory as a core server component and removed the empty apps directory.
- Streamlined up.sh and down.sh to deploy and stop only core services and homepage, removing --infra-only parameters.
- Replaced all hardcoded domain names with a configurable global DOMAIN environment variable in docker-compose files.
- Used Authelia templating ({{ env "DOMAIN" }}) in configuration.yml to dynamically resolve SSO cookie domains and redirection URLs.
- Updated up.sh and down.sh helpers to explicitly pass env files via --env-file flags, resolving compose interpolation warnings.
- Created a declarative NixOS module (infra/nixos/dynu-ddns.nix) to orchestrate the Dynu DDNS update script.
- Created Authelia .env-example template for setup reproducibility.
- Refactored .gitignore to exclude obsolete app cache rules and keep it minimal to core secrets, volumes, and logs.
- Updated documentation (README, architecture, roadmap, usability) to document decoupled deployments and public/SSO service templates.
37 lines
979 B
YAML
37 lines
979 B
YAML
services:
|
|
homepage:
|
|
image: ghcr.io/gethomepage/homepage:latest
|
|
container_name: homepage
|
|
restart: always
|
|
volumes:
|
|
- ./config:/app/config
|
|
- /home:/home:ro
|
|
environment:
|
|
- HOMEPAGE_ALLOWED_HOSTS=${DOMAIN}
|
|
networks:
|
|
- proxy-net
|
|
- socket-net
|
|
labels:
|
|
- "traefik.enable=true"
|
|
# Public (HTTPS)
|
|
- "traefik.http.routers.homepage.rule=Host(`${DOMAIN}`)"
|
|
- "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(`${DOMAIN}`)"
|
|
- "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"
|
|
|
|
|
|
|
|
networks:
|
|
proxy-net:
|
|
external: true
|
|
socket-net:
|
|
external: true
|
|
|