Go to file
Christopher LaPointe 3466d20b80 Add cancel defer
2023-05-23 21:10:16 -04:00
2023-05-21 10:36:40 -04:00
2023-05-23 21:10:16 -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-20 15:28:21 -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
  • lazyloader.hosts=a.com,b.net,etc -- Set specific hostnames that will trigger. By default, will look for traefik router

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%