-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (42 loc) · 1.75 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.DEFAULT_GOAL := help
DOCKER_COMPOSE := docker compose
start:
@bash -c "$(DOCKER_COMPOSE) up -d"
stop:
@bash -c "$(DOCKER_COMPOSE) down"
restart:
@bash -c "$(DOCKER_COMPOSE) down && $(DOCKER_COMPOSE) up -d"
build:
@bash -c "$(DOCKER_COMPOSE) build"
start-ext:
@bash -c "$(DOCKER_COMPOSE) -f docker-compose.ext.yml up -d"
stop-ext:
@bash -c "$(DOCKER_COMPOSE) -f docker-compose.ext.yml down"
restart-ext:
@bash -c "$(DOCKER_COMPOSE) -f docker-compose.ext.yml down && $(DOCKER_COMPOSE) -f docker-compose.ext.yml up -d"
build-ext:
@bash -c "$(DOCKER_COMPOSE) -f docker-compose.ext.yml build"
logs:
@bash -c "$(DOCKER_COMPOSE) logs -t --tail=50 -f"
help:
@echo "Available commands:"
@echo "======================================================="
@echo " General"
@echo "======================================================="
@echo " logs - Show logs"
@echo "======================================================="
@echo " Production"
@echo "======================================================="
@echo " start - Start the application"
@echo " restart - Restart the application"
@echo " stop - Stop the application"
@echo " build - Build the application"
@echo "======================================================="
@echo " External Mode"
@echo "======================================================="
@echo " start-ext - Start the application in external mode"
@echo " stop-ext - Stop the application in external mode"
@echo " restart-ext - Restart the application in external mode"
@echo " build-ext - Build the application in external mode"
@echo "======================================================="
.PHONY: start stop restart build start-ext stop-ext restart-ext build-ext logs help