parent
9c27257cce
commit
abe7f70ca3
@ -0,0 +1,22 @@
|
||||
.PHONY: format help
|
||||
|
||||
# Help system from https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
help:
|
||||
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
setup: ## Install dependencies to the system
|
||||
sudo bash setup.sh
|
||||
|
||||
up: ## Fetch images and run containers
|
||||
docker-compose up -d
|
||||
|
||||
down: ## Remove containers
|
||||
docker-compose down
|
||||
|
||||
logs: ## View container logs
|
||||
docker-compose logs -f
|
||||
|
||||
restart: ## Restart containers
|
||||
docker-compose restart
|
Reference in new issue