From c26ff16eab830d33b27a5d0504c2ba44dd395e93 Mon Sep 17 00:00:00 2001 From: renator2 Date: Mon, 20 Jul 2026 11:37:26 -0300 Subject: [PATCH] =?UTF-8?q?#SVTH-575=20-=20Ajustes=20no=20reposit=C3=B3rio?= =?UTF-8?q?=20para=20instala=C3=A7=C3=A3o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cd99bc9..a79b9c9 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ ENV_FILE = .env.$(ENV) PROJECT_NAME = attendancesystem-$(ENV) NETWORK_NAME = attendancesystem-network +APP_SERVICES = suite-api users-api reports-api attendancesystem-api config-generator attendancesystem-app reports-app users-app suite-app .PHONY: infra app install update restart reset-network nuke nuke-project @@ -80,16 +81,26 @@ restart: docker restart $$(docker ps -q) # =============================== -# 🔄 Atualizar projeto +# 🔄 Atualizar projeto (apenas APP) # =============================== update: - @echo "🛑 Parando e removendo containers do profile 'app' ($(PROJECT_NAME))..." + @echo "🛑 Parando containers do profile 'app' ($(PROJECT_NAME))..." docker compose \ --project-name $(PROJECT_NAME) \ --env-file $(ENV_FILE) \ + --profile infra \ --profile app \ -f $(COMPOSE_FILE) \ - down --remove-orphans + stop $(APP_SERVICES) + + @echo "🗑️ Removendo containers do profile 'app' ($(PROJECT_NAME))..." + docker compose \ + --project-name $(PROJECT_NAME) \ + --env-file $(ENV_FILE) \ + --profile infra \ + --profile app \ + -f $(COMPOSE_FILE) \ + rm -f $(APP_SERVICES) @echo "🖼️ Removendo imagens antigas do projeto (seventhltda)..." - docker images --format '{{.Repository}}:{{.Tag}}' | grep '^seventhltda/' | xargs -r docker rmi -f 2>/dev/null || true