nginx default config file is fully commented with explanations
This commit is contained in:
16
Makefile
16
Makefile
@@ -25,7 +25,7 @@ RESET = "\e[0m"
|
||||
COMPOSE = ./srcs/docker-compose.yml
|
||||
|
||||
IMAGES = test \
|
||||
# nginx
|
||||
nginx
|
||||
|
||||
HOME_D = $(shell echo $(HOME))
|
||||
|
||||
@@ -49,7 +49,7 @@ build:
|
||||
sudo docker-compose -f $(COMPOSE) build
|
||||
|
||||
up: $(VOLUMES_D)
|
||||
sudo docker-compose -f $(COMPOSE) up
|
||||
sudo docker-compose -f $(COMPOSE) up -d
|
||||
|
||||
# list images, containers, volumes
|
||||
list:
|
||||
@@ -73,8 +73,12 @@ stop:
|
||||
rm-containers: stop
|
||||
- sudo docker rm $(CONTAINERS)
|
||||
|
||||
# close nginx
|
||||
close-nginx:
|
||||
- sudo nginx -s quit
|
||||
|
||||
# remove project images and containers
|
||||
clean: rm-images stop rm-containers
|
||||
clean: stop rm-containers close-nginx
|
||||
|
||||
# remove project volumes
|
||||
rm-volumes:
|
||||
@@ -82,7 +86,7 @@ rm-volumes:
|
||||
/bin/rm -rf $(VOLUMES_D)
|
||||
|
||||
# remove project
|
||||
fclean: clean rm-volumes
|
||||
fclean: rm-images clean rm-volumes
|
||||
|
||||
# remove all containers and related files that are not runnings
|
||||
prune:
|
||||
@@ -97,7 +101,5 @@ fprune:
|
||||
|
||||
re: fclean all
|
||||
|
||||
rre: ffclean all
|
||||
|
||||
.PHONY : all build up $(VOLUMES_D) list rm-images stop rm-containers clean rm-volumes fclean prune fprune re rre
|
||||
.PHONY : all build up $(VOLUMES_D) list rm-images stop rm-containers close-nginx clean rm-volumes fclean prune fprune re
|
||||
|
||||
|
||||
Reference in New Issue
Block a user