swarm: use context
This commit is contained in:
parent
ef037a6916
commit
91999ec9b5
|
@ -42,7 +42,7 @@ start-compose:
|
|||
start-swarm:
|
||||
@- echo "\n### starting service(s)"
|
||||
@- $(foreach ctx,$(DEPLOY_HOSTS), \
|
||||
docker stack deploy -c stack.yml $(DEPLOY_NAME); \
|
||||
docker --context $(ctx) stack deploy -c stack.yml $(DEPLOY_NAME); \
|
||||
)
|
||||
|
||||
stop-compose:
|
||||
|
@ -55,7 +55,7 @@ stop-compose:
|
|||
stop-swarm:
|
||||
@- echo "\n### stopping service(s)"
|
||||
@- $(foreach ctx,$(DEPLOY_HOSTS), \
|
||||
docker stack rm $(DEPLOY_NAME); \
|
||||
docker --context $(ctx) stack rm $(DEPLOY_NAME); \
|
||||
)
|
||||
|
||||
logs-compose:
|
||||
|
|
Loading…
Reference in New Issue