From a4f7bcea806e125477e717c80eb6944eb9f8df28 Mon Sep 17 00:00:00 2001 From: llitfkitfk Date: Wed, 16 Aug 2017 17:05:29 +0800 Subject: [PATCH] add instruction for swarm mode deploy --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index fbb2124..41293b4 100644 --- a/README.md +++ b/README.md @@ -94,3 +94,9 @@ Several projects utilize this Prometheus stack. Here's the list of projects: *Have an intersting Project which use this Repo? Submit yours to the list* +## Swarm mode Configuration + +edit file `docker-compose.yml` change `node.hostname = ` to your swarm node name for both `alertmanager` and `prometheus` +``` +docker stack deploy -c docker-compose.yml monitor +``` \ No newline at end of file