- changed volumes to be local to the repo

- added volumes/ dir in gitignore
This commit is contained in:
asus
2024-02-05 16:15:45 +01:00
parent 56a69c5520
commit f43de228c6
5 changed files with 24 additions and 21 deletions

View File

@@ -1,9 +1,13 @@
#!/bin/bash
PROJECT_NAME="jipf"
PROJECT_URL="local_lejourduprof.com"
PROJECT_PORT=443
# change execution_time and max_upload_size, in wp and nginx
SERVER_EXECUTION_TIME=300
SERVER_MAX_UPLOAD_SIZE=512
# ----------------------------------------------------------------------
# NGINX SETUP
@@ -14,6 +18,7 @@ NG_VOLUME_CERTS=/etc/ssl
# ----------------------------------------------------------------------
# MARIADB SETUP
DB_VOLUME_DIR=/var/lib/mysql
DB_HOST=mariadb
DB_NAME=db_wp_${PROJECT_NAME}
DB_USER=user_wp_${PROJECT_NAME}
@@ -37,10 +42,6 @@ WP_ADMIN=admin
WP_ADMIN_PSWD="you shall not password !"
WP_ADMIN_EMAIL=admin@email.fr
# change execution_time and max_upload_size in wordpress
EXECUTION_TIME=300
MAX_UPLOAD_SIZE=512
# ----------------------------------------------------------------------
# VOLUMES
@@ -71,8 +72,11 @@ MAX_UPLOAD_SIZE=512
# - and output : "/home/username"
# - because "~username" expand in the home (~) directory of given user
# https://stackoverflow.com/questions/77088135/makefile-subst-doesnt-use-make-variable-as-expected
HOME_PATH=$(eval echo "~$SUDO_USER")
HOST_HOME_PATH=$(eval echo "~$SUDO_USER")
HOST_VOLUME_WP=${HOME_PATH}/data/lejourduprof/wp_volume
HOST_VOLUME_DB=${HOME_PATH}/data/lejourduprof/db_volume
# makefile will create the volumes folders
# we put them inside a volumes/ dir, sibling to the srcs/ dir
HOST_VOLUMES_DIR=$(realpath ${DIR_PATH}/../volumes)
HOST_VOLUME_WP=${HOST_VOLUMES_DIR}/wp_volume
HOST_VOLUME_DB=${HOST_VOLUMES_DIR}/db_volume