#exposec - criando branch com ambiente para exposec.

This commit is contained in:
2026-05-12 12:00:10 -03:00
parent 7c04b99d86
commit afbd794fd3
3 changed files with 8 additions and 96 deletions

View File

@@ -5,7 +5,7 @@ ENV_FILE = .env.$(ENV)
PROJECT_NAME = attendancesystem-$(ENV)
NETWORK_NAME = attendancesystem-network
.PHONY: infra app install update reset-network nuke nuke-project
.PHONY: app install update reset-network nuke nuke-project
# ===============================
# 🧹 Reset Network
@@ -14,25 +14,6 @@ reset-network:
@echo "🧹 Removendo rede antiga (se existir)..."
-docker network rm $(NETWORK_NAME) 2>/dev/null || true
# ===============================
# 🏗 Subir apenas INFRA
# ===============================
infra: reset-network
@echo "📥 Baixando imagens de INFRA ($(PROJECT_NAME))..."
docker compose \
--project-name $(PROJECT_NAME) \
--env-file $(ENV_FILE) \
--profile infra \
-f $(COMPOSE_FILE) \
pull
@echo "🚀 Subindo apenas INFRA ($(PROJECT_NAME))..."
docker compose \
--project-name $(PROJECT_NAME) \
--env-file $(ENV_FILE) \
--profile infra \
-f $(COMPOSE_FILE) \
up -d --pull never
# ===============================
# 🧩 Subir apenas APP
# ===============================
@@ -60,7 +41,6 @@ install:
docker compose \
--project-name $(PROJECT_NAME) \
--env-file $(ENV_FILE) \
--profile infra \
--profile app \
-f $(COMPOSE_FILE) \
pull
@@ -68,7 +48,6 @@ install:
docker compose \
--project-name $(PROJECT_NAME) \
--env-file $(ENV_FILE) \
--profile infra \
--profile app \
-f $(COMPOSE_FILE) \
up -d --pull never
@@ -111,7 +90,6 @@ nuke-project:
docker compose \
--project-name $(PROJECT_NAME) \
--env-file $(ENV_FILE) \
--profile infra \
--profile app \
-f $(COMPOSE_FILE) \
down --volumes --remove-orphans
@@ -120,4 +98,3 @@ nuke-project:
- docker images --format '{{.Repository}}:{{.Tag}}' | grep '^seventhltda/' | xargs -r docker rmi -f 2>/dev/null || true
@echo "✅ Projeto $(PROJECT_NAME) limpo (containers, volumes, rede e imagens)."
@echo " Imagens de infraestrutura preservadas."