Refactor makefile to add deployment targets for apps and test stacks

This commit is contained in:
2024-06-04 14:26:14 +08:00
parent 8f1d81e650
commit 5d893eafb4
3 changed files with 12 additions and 3 deletions
Submodule
+1
Submodule emqx-docker added at 554e4b1872
+8
View File
@@ -14,4 +14,12 @@ pull:
@echo "Pulling the project..."
git pull
deploy-apps: pull
@echo "Deploying the apps stack..."
loadenvs ./swarm/.env && docker stack deploy --compose-file ./swarm/apps.yml apps
deploy-test: pull
@echo "Deploying the apps stack..."
loadenvs ./swarm/.env && docker stack deploy --compose-file ./swarm/thelounge.yml thelounge
# git submodule update --init --recursive
+3 -3
View File
@@ -6,9 +6,9 @@ services:
networks:
- traefik-public
deploy:
placement:
constraints:
- node.labels.thelounge.thelounge-data == true
# placement:
# constraints:
# - node.labels.thelounge.thelounge-data == true
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public