Refactor makefile to add deployment targets for apps and test stacks
This commit is contained in:
Submodule
+1
Submodule emqx-docker added at 554e4b1872
@@ -14,4 +14,12 @@ pull:
|
|||||||
@echo "Pulling the project..."
|
@echo "Pulling the project..."
|
||||||
git pull
|
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
|
# git submodule update --init --recursive
|
||||||
+3
-3
@@ -6,9 +6,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- traefik-public
|
- traefik-public
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
# placement:
|
||||||
constraints:
|
# constraints:
|
||||||
- node.labels.thelounge.thelounge-data == true
|
# - node.labels.thelounge.thelounge-data == true
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.docker.network=traefik-public
|
- traefik.docker.network=traefik-public
|
||||||
|
|||||||
Reference in New Issue
Block a user