-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 896 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
@PHONY: build-prod run-prod stop-prod clean-all clean-custom
build-prod:
@echo "Building production images"
docker compose -f docker-compose.yml build
run-prod:
@echo "Running the production stack"
docker compose -f docker-compose.yml up -d
stop-prod:
@echo "Stopping the production stack"
docker compose -f docker-compose.yml down
run-beta:
@echo "Running the pre-production stack"
docker compose -f docker-compose-beta.yml up --build -d
stop-beta:
@echo "Stopping the pre-production stack"
docker compose -f docker-compose-beta.yml down
clean-all:
@echo "Removing all images related to the project"
docker compose -f docker-compose.yml down --rmi all
docker compose -f docker-compose-beta.yml down --rmi all
clean-custom:
@echo "Removing all custom images"
docker compose -f docker-compose.yml down --rmi local
docker compose -f docker-compose-beta.yml down --rmi local