Go to file
Christopher LaPointe ffa7ad7ca8 Move config into package
2023-05-22 21:51:15 -04:00
2023-05-21 10:36:40 -04:00
2023-05-22 21:51:15 -04:00
2023-05-20 15:28:21 -04:00
2023-05-22 21:43:12 -04:00
2023-05-20 15:28:21 -04:00
2023-05-20 15:28:21 -04:00
2023-05-20 15:28:21 -04:00
2023-05-22 21:51:15 -04:00
2023-05-21 10:36:40 -04:00
2023-05-22 21:51:15 -04:00

traefik-lazyloader

Takes advantage of traefik's router priority to proxy to this small application that will manage starting/stopping containers to save resources.

Quick-Start

Config

Labels

  • lazyloader=true -- (Required) Add to containers that should be managed
  • lazyloader.stopdelay=5m -- Amount of time to wait for idle network traffick before stopping a container
  • lazyloader.waitforcode=200 -- Waits for this HTTP result from downstream before redirecting user
  • lazyloader.waitforpath=/ -- Checks this path downstream to check for the process being ready, using the waitforcode

Features

  • Dependencies & groups (eg. shut down DB if all dependent apps are down)

License

GPLv3

Description
A small traefik/docker wrapper to load and unload containers on-demand to save resources
Readme 156 KiB
Languages
Go 77.6%
HTML 13.7%
CSS 7.7%
Dockerfile 1%