saltyorg / Sandbox

Saltbox Sandbox
GNU General Public License v3.0
68 stars 94 forks source link

feat(role): add homepage #189

Closed JigSawFr closed 1 year ago

JigSawFr commented 1 year ago

Description

A modern (fully static, fast), secure (fully proxied), highly customizable application dashboard with integrations for more than 25 services and translations for over 15 languages. Easily configured via YAML files (or discovery via docker labels).

How Has This Been Tested?

Traefik Widget

~~At this time, homepage container is unable to reach traefik endpoint locally, You need to add temporary these lines in your inventory file:~~

traefik_docker_labels_custom:
  traefik.http.routers.traefik-local.rule: "Host(`traefik`)"
  traefik.http.routers.traefik-local.entrypoints: "web, websecure"
  traefik.http.routers.traefik-local.service: "api@internal"

And your traefik widget will work as expected ! A PR is closed: https://github.com/saltyorg/Saltbox/pull/115

Healthcheck

If you want healthcheck for this container, add these lines to your inventory:

homepage_docker_healthcheck:
  test: ["CMD", "wget", "--spider", "http://localhost:{{ homepage_web_port }}"]
  interval: 1m
  timeout: 10s
  retries: 2
  start_period: 30s
maximuskowalski commented 1 year ago

There is already a docker socket proxy role in saltbox FYI https://github.com/saltyorg/Saltbox/tree/master/roles/docker_socket_proxy

Can see it used in the glances web role here in sandbox https://github.com/saltyorg/Sandbox/blob/5bcd35d41ebe8abfc35cdd70289e1bc1ea15136e/roles/glances_web/tasks/main.yml#L16

JigSawFr commented 1 year ago

Discussion in #sandbox-dev, original role is not instances ready nor customizable

JigSawFr commented 1 year ago

Moved enhancement of docker-socket-proxy role to Saltbox core https://github.com/saltyorg/Saltbox/pull/116

owine commented 1 year ago

With the docker-socket-proxy change merged to master, probably need a update to match the style here:

https://github.com/saltyorg/Saltbox/commit/37ccde8ce97923ed7f65aeb213720ae3669c1930

JigSawFr commented 1 year ago

With the docker-socket-proxy change merged to master, probably need a update to match the style here:

https://github.com/saltyorg/Saltbox/commit/37ccde8ce97923ed7f65aeb213720ae3669c1930

Exactly, was waiting before final merge in case of change in salt box ;) will change this asap