-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 1.24 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
.PHONY: start-development
start-development: ## Start the development docker container.
docker compose -f docker-compose.development.yml up -d
.PHONY: stop-development
stop-development: ## Stop the development docker container.
docker compose -f docker-compose.development.yml down
.PHONY: build-production
build-production: ## Build the production docker image.
docker compose -f docker-compose.production.yml build
.PHONY: start-production
start-production: ## Start the production docker container.
docker compose -f docker-compose.production.yml up -d
.PHONY: stop-production
stop-production: ## Stop the production docker container.
docker compose -f docker-compose.production.yml down
.PHONY: clean-containers
clean-containers: ## Remove all stopped containers
docker container prune
.PHONY: clean-images
clean-images: ## Remove all images not used by existing containers
docker image prune -a
.PHONY: clean-volumes
clean-volumes: ## Remove all images not used by existing containers
docker volume prune
.PHONY: clean-networks
clean-networks: ## Remove all networks not used by existing containers
docker network prune
.PHONY: clean
clean: ## Prunes all images, containers, and networks
docker system prune --volumes -f
docker volume prune -a -f