diff --git a/Makefile b/Makefile index 604d57b..35a9c4b 100644 --- a/Makefile +++ b/Makefile @@ -117,13 +117,16 @@ setup: install env db-up db-wait migrate seed-all ## Komplettes lokales Setup vo # --- Deployment (externes Traefik; braucht Docker) ----------------------- # Externes Netz muss existieren: docker network create frontend -.PHONY: build up down logs ps deploy migrate-stack data config +.PHONY: build up up-core down logs ps deploy deploy-core migrate-stack data config build: ## App-Image bauen (Next.js standalone, non-root) $(COMPOSE) build app up: ## Stack starten (App + Postgres + Geo) hinter Traefik $(COMPOSE) up -d +up-core: ## Nur App + Postgres starten (OHNE Geo/OSRM/Nominatim) — wenig RAM nötig + $(COMPOSE) up -d --build app postgres + down: ## Stack stoppen $(COMPOSE) down @@ -133,7 +136,10 @@ logs: ## App-Logs folgen ps: ## Status der Stack-Container $(COMPOSE) ps -deploy: build up ## build + up (Standard-Deploy; migrate läuft via Entrypoint automatisch) +deploy: build up ## build + up (voller Stack inkl. Geo; migrate via Entrypoint) + +deploy-core: ## build + up-core (App + Postgres, ohne Geo; Geo später per 'make data' + 'make up') + $(MAKE) up-core migrate-stack: ## Migrationen im laufenden App-Container ausführen (manuell) $(COMPOSE) exec app node docker/migrate.mjs