From 895abd694b8e78cd6dd4f0c4848cd2d6203a88ea Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Thu, 6 Jun 2024 15:36:28 +0800 Subject: [PATCH] Refactor swarm/secondary.yml to add deploy-emqx target for deploying the emqx stack --- makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 8d50a87..e05fa59 100644 --- a/makefile +++ b/makefile @@ -57,7 +57,14 @@ deploy-secondary: pull set +a ;\ docker stack deploy --compose-file ./swarm/secondary.yml secondary ;\ } - +deploy-emqx: pull + { \ + echo "Deploying the emqx stack..." ;\ + set -a ;\ + . ./swarm/.env ;\ + set +a ;\ + docker stack deploy --compose-file ./swarm/emqx.yml emqx ;\ + } deploy-ghost: pull { \ echo "Deploying the ghost stack..." ;\ @@ -66,7 +73,14 @@ deploy-ghost: pull set +a ;\ docker stack deploy --compose-file ./swarm/ghost.yml ghost ;\ } - +deploy-swarmpit: pull + { \ + echo "Deploying the swarmpit stack..." ;\ + set -a ;\ + . ./swarm/.env ;\ + set +a ;\ + docker stack deploy --compose-file ./swarm/swarmpit.yml swarmpit ;\ + } deploy-thelounge: pull { \ echo "Deploying the thelounge stack..." ;\