-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (47 loc) · 1.75 KB
/
Makefile
File metadata and controls
59 lines (47 loc) · 1.75 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
include .env
help:
@echo ""
@echo "usage: make <COMMAND>"
@echo ""
@echo "Commands:"
@echo " start Start nginx-proxy container and database containers (MySQL+PostgreSQL)"
@echo " stop Stop nginx-proxy container and database containers (MySQL+PostgreSQL)"
@echo " status Show info about running containers"
@echo ""
@echo " new Create new project (based on project template)"
@echo " up Trigger 'docker-composer up -d' for the existing project"
@echo " down Trigger 'docker-composer down -v' for the existing project"
@echo " build Trigger 'docker-compose up -d --no-deps --build' for the existing project"
@echo " rm Remove files, /etc/hosts record and db data for the existing project"
@echo " bash [options] Open container's command prompt. Options: c=container"
@echo ""
@echo " v Show current version of core DockerNotLAMP"
@echo " about Show license & origins"
v:
@echo $(VERSION)
start:
@cd $(NGINX_PROXY_DIR); docker-compose up -d;
@cd $(DATABASE_DIR); docker-compose up -d;
stop:
@cd $(NGINX_PROXY_DIR); docker-compose down -v;
@cd $(DATABASE_DIR); docker-compose down -v;
new:
@bash -e "$(SHELL_DIR)/project.new.sh"
up:
@bash -e "$(SHELL_DIR)/docker.compose.sh" "up -d"
down:
@bash -e "$(SHELL_DIR)/docker.compose.sh" "down -v"
rm:
@bash -e "$(SHELL_DIR)/project.remove.sh" ""
status:
@bash -e "$(SHELL_DIR)/service.status.sh" $(NGINX_PROXY_DIR) $(DATABASE_DIR)
build:
@bash -e "$(SHELL_DIR)/docker.compose.sh" "up -d --no-deps --build"
bash:
ifdef c
docker exec -it $(c) /bin/bash
else
@echo "Missing container argument: c=container"
endif
about:
@cat "./license.txt"