-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (36 loc) · 997 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
38
39
40
41
42
43
44
45
46
47
requirements = postgres #mongodb rabbitmq
services = service-registry file-service hr-service item-service selling-service main-service ui-app
.PHONY: start
start:
make start-requirements start-services
.PHONY: build
build:
./build-helper.sh -c install
docker compose build --no-cache $(services)
.PHONY: start-services
start-services:
docker compose up $(services)
.PHONY: stop-services
stop-services:
docker compose stop $(services)
.PHONY: start-requirements
start-requirements:
docker compose up -d $(requirements)
.PHONY: stop-requirements
stop-requirements:
docker compose stop $(requirements)
.PHONY: remove-containers
remove-containers:
@echo "Removing all stopped containers..."
docker compose rm $(services) $(requirements)
.PHONY: burn
burn:
@echo "Stopping and removing all containers..."
make stop-services stop-requirements remove-containers
.PHONY: clean-data
clean-data:
rm -rf .docker/**/data
.PHONY: reset
reset:
make burn clean-data start
default: start