dev: mariadb users *
other things also
This commit is contained in:
parent
39f90db91d
commit
a1d2d83f60
11 changed files with 79 additions and 28 deletions
10
Makefile
10
Makefile
|
|
@ -4,9 +4,11 @@ DOCKER=docker
|
|||
MKTEMP=mktemp
|
||||
|
||||
include .env
|
||||
export DATABASE_PWD
|
||||
export DATABASE_PWD_ROOT
|
||||
export VOLUMES_PATH
|
||||
|
||||
SRC_COMPOSE=srcs/
|
||||
SRC_WWW_MORE=srcs/www/
|
||||
CERT_PATH=srcs/__cert/
|
||||
CERT_PATH_FILES=$(addprefix $(CERT_PATH), ca.pem cert.key cert.crt )
|
||||
|
||||
|
|
@ -33,7 +35,7 @@ run : $(CERT_PATH_FILES)
|
|||
cd -- $(SRC_COMPOSE)
|
||||
mkdir -p $(VOLUMES_PATH)/www
|
||||
mkdir -p $(VOLUMES_PATH)/db
|
||||
DATABASE_PWD="$(DATABASE_PWD)" VOLUMES_PATH="$(VOLUMES_PATH)" $(DOCKER) compose up --build
|
||||
$(DOCKER) compose up --build
|
||||
>/dev/null cd -
|
||||
|
||||
|
||||
|
|
@ -41,7 +43,9 @@ run : $(CERT_PATH_FILES)
|
|||
reset :
|
||||
@$(_ECHO)
|
||||
|
||||
echoo "Removing all data..."
|
||||
echoo "Resetting data..."
|
||||
rm -f $(VOLUMES_PATH)/www/.installed
|
||||
rm -f $(VOLUMES_PATH)/db/.installed
|
||||
cd -- $(SRC_COMPOSE)
|
||||
docker compose down -v
|
||||
>/dev/null cd -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue