diff options
author | Cody Hiar <cody@hiar.ca> | 2023-05-05 10:52:26 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2023-05-05 10:52:26 -0600 |
commit | 396092d197fdd4af2af7671959667d2bd303de22 (patch) | |
tree | 8b95522122f8215c1ba41472fb7a3eae76c6f2c6 /Makefile |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c954afa --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +.PHONY: build + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +build: ## Build the Docker image + docker-compose -p nginx-proxy-test build + +up: build ## Bring the container up + docker-compose -p nginx-proxy-test up -d + +down: ## Stop the container + docker-compose -p nginx-proxy-test stop + +enter: ## Enter the running container + docker-compose -p nginx-proxy-test exec mynginx /bin/bash + +clean: down ## Remove stoped containers + docker-compose -p nginx-proxy-test rm -f |