-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (40 loc) · 2.15 KB
/
Copy pathMakefile
File metadata and controls
59 lines (40 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.DEFAULT_GOAL := help
.PHONY: help up down down-v reset-volumes ps logs build \
global-up global-down global-down-v global-reset-volumes global-ps global-logs global-build global-restart \
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-28s\033[0m %s\n", $$1, $$2}'
# ===== Self-contained =====
up: ## Build (if needed) and start the service
docker compose up -d --build
down: ## Stop and remove this service (keeps volumes)
docker compose down
down-v: ## Stop and remove this service and its volumes (destructive: wipes all DB/minio data)
docker compose down -v
reset-volumes: ## Reset all volumes and restart the service fresh
docker compose down -v
docker compose up -d
ps: ## Show status of all containers in the service
docker compose ps
logs: ## Tail logs for this service
docker compose logs -f
build: ## Build this service images
docker compose build
# ===== As a Submodule =====
global-up: ## Start the service (if not already running)
docker compose -f ../docker-compose.yaml up -d --build api-authentification
global-down: ## Stop the service (if running)
docker compose -f ../docker-compose.yaml down api-authentification
global-down-v: ## Stop the service and remove its volumes (destructive: wipes all DB/minio data)
docker compose -f ../docker-compose.yaml down -v api-authentification
global-reset-volumes: ## Reset all volumes and restart the service fresh
docker compose -f ../docker-compose.yaml down -v api-authentification
docker compose -f ../docker-compose.yaml up -d api-authentification
global-ps: ## Show status of all containers in the service
docker compose -f ../docker-compose.yaml ps api-authentification
global-logs: ## Tail logs for this service
docker compose -f ../docker-compose.yaml logs -f api-authentification
global-build: ## Build this service images
docker compose -f ../docker-compose.yaml build api-authentification
global-restart: ## Rebuild and restart this service (config/code change)
docker compose -f ../docker-compose.yaml down api-authentification
docker compose -f ../docker-compose.yaml up -d --build api-authentification