feat: add app files

This commit is contained in:
Lenoctambule
2026-04-02 12:04:23 +02:00
parent e3f5cf6a1e
commit f8a48ee181
13 changed files with 524 additions and 0 deletions

32
files/inception/Makefile Normal file
View File

@@ -0,0 +1,32 @@
CMPS = -f ./srcs/docker-compose.yml
DATA_DIR = /data
all: run
${DATA_DIR}:
@mkdir -p ${DATA_DIR}/db_data
@mkdir -p ${DATA_DIR}/site_data
check_env:
@if [ ! -f ./srcs/.env ]; then \
echo "[\e[0;31mERROR\e[0m] No .env file provided. Unset credentials will be set to default" ; \
exit 1; \
fi
run : build
@docker compose $(CMPS) up -d -y
build : check_env ${DATA_DIR}
@docker compose $(CMPS) build
stop : check_env
@docker compose $(CMPS) down
fclean : check_env
@docker compose $(CMPS) down
@sudo rm -rf ${DATA_DIR}
re : fclean all
.PHONY: all re stop run fclean