NAME = inception DATA_FOLDER = /home/$(USER)/data CERT = $(DATA_FOLDER)/ssl/inception.pem all: clean start domain: echo "127.0.0.1 $(USER).42.fr" >> /etc/hosts $(CERT): mkdir -p $(DATA_FOLDER)/ssl openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes \ -out inception.pem -keyout inception.pem \ -subj "/C=FR/ST=Nice/L=Nice/O=42/OU=student/CN=inception_$(USER)/" start: $(CERT) BUILDKIT_PROGRESS=plain docker compose -f srcs/docker-compose.yml up --build stop: docker compose -f srcs/docker-compose.yml down clean: stop docker system prune -f fclean: prune docker system prune -af --volumes re: fclean start .PHONY: domain start stop clean fclean all