nginx default config file is fully commented with explanations

This commit is contained in:
hugo gogo
2022-08-31 13:58:34 +02:00
parent f03422ab4f
commit 2967738e7a
7 changed files with 79 additions and 46 deletions

View File

@@ -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