From 54493a0efa8d2afeadd6f1fc74fca5d9d3df7c5f Mon Sep 17 00:00:00 2001 From: andres Date: Tue, 15 Oct 2024 19:07:04 -0500 Subject: [PATCH] docs: Adds an example config to README.md Closes #1 --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 9de62a0..0a06d56 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,22 @@ versions of images to deploying seemlessly. Dispenser works as a daemon that runs in the background of the host server. +## Example config + +This is an example config that you can base yours around. This config +listens to changes on the `nginx:latest` image and reloads the +docker compose found in the directory `/opt/dispenser/example`. + +```toml +delay=60 # Will watch for updates every 60 seconds + +[[instance]] +path = "example" +images = [ + { registry = "docker.io", name = "nginx", tag = "latest" } +] +``` + ## Build ### RPM (RHEL)