-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (21 loc) · 733 Bytes
/
Makefile
File metadata and controls
24 lines (21 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## up: starts all containers in the background without forcing build
up:
@echo "Starting docker images..."
docker-compose -f ./docker-compose.yml up -d
@echo "Docker images started!"
## down: stop docker compose
down:
@echo "Stopping docker images..."
docker-compose -f ./docker-compose.yml down
@echo "Docker stopped!"
## rebuild: rebuilding all containers without cache
rebuild:
@echo "Rebuilding docker images..."
docker-compose -f ./docker-compose.yml down
docker-compose -f ./docker-compose.yml build --no-cache
docker-compose -f ./docker-compose.yml up -d
@echo "Docker images rebuilt!"
## help: displays help
help: Makefile
@echo " Choose a command:"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'