Sign inSign up

ogulcanaydogan/config-watcher

By ogulcanaydogan

Updated 8 months ago

Watch config files for changes and trigger reload actions

Image
0

893

ogulcanaydogan/config-watcher repository overview

Config Watcher

Watch configuration files for changes and trigger actions (reload, restart, webhook).

Quick Start

docker run -v $(pwd)/config:/config -e WATCH_PATH=/config -e ON_CHANGE="curl -X POST http://app:8080/reload" ogulcanaydogan/config-watcher

Features

  • Watch files and directories for changes
  • Execute commands on change
  • Webhook notifications
  • Debounce support (avoid rapid triggers)
  • Pattern-based file filtering

Environment Variables

VariableDescriptionDefault
WATCH_PATHPath to watch/config
ON_CHANGECommand to run on change-
WEBHOOK_URLURL to POST on change-
DEBOUNCE_MSDebounce interval (ms)1000
PATTERNFile glob pattern to watch*

License

MIT

Tag summary

Content type

Image

Digest

sha256:340d7ebee

Size

48.6 MB

Last updated

8 months ago

docker pull ogulcanaydogan/config-watcher