-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (25 loc) · 809 Bytes
/
Makefile
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
.DEFAULT_GOAL := help
setup: ## Build and Install
sh ./docker/scripts/setup.sh
build: ## Build images
sh ./docker/scripts/build.sh
install: ## Install dependencies
sh ./docker/scripts/supply.sh
blog-backup: ## backup
sh ./docker/scripts/blog-backup.sh
blog-migration: ## migration
sh ./docker/scripts/blog-migration.sh
up: ## Up services
docker-compose up -d
uplog: ## Up services with logs
docker-compose up
down: ## Stop and remove services
docker-compose down
reload: ## Reload services
docker-compose restart
list: ## List of current active services
docker-compose ps
ssh: ## Connect to container
docker-compose exec -it $(CONTAINER) sh
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'