STACK := traefik
COMPOSE_FILE := docker-compose.yml
NETWORK := proxy
default: deploy
deploy:
@docker stack deploy -c $(COMPOSE_FILE) $(STACK)
down:
@docker stack rm $(STACK)
network:
@docker network create --driver=overlay $(NETWORK)
logs:
@docker service logs -f $(STACK)_$(STACK)
.PHONY: deploy