diff --git a/docker/init.sh b/docker/init.sh index 760d6005bed0c4e5233d585b06d3692e583603bd..fdb14f5c1482639d15932240a30e6e4b32f7d122 100755 --- a/docker/init.sh +++ b/docker/init.sh @@ -4,8 +4,9 @@ # DOCKER PHP DEV ENVIRONMENT :: INIT # # ---------------------------------------------------------------------- -# 2021-11-nn <axel.hahn@iml.unibe.ch> -# 2022-07-19 <axel.hahn@iml.unibe.ch> support multiple dirs for setfacl +# 2021-11-nn v1.0 <axel.hahn@iml.unibe.ch> +# 2022-07-19 v1.1 <axel.hahn@iml.unibe.ch> support multiple dirs for setfacl +# 2022-07-19 v1.2 <www.axel-hahn.de> use docker-compose -p "$APP_NAME" # ====================================================================== cd $( dirname $0 ) @@ -14,6 +15,8 @@ cd $( dirname $0 ) # git@git-repo.iml.unibe.ch:iml-open-source/docker-php-starterkit.git selfgitrepo="docker-php-starterkit.git" +_version="1.2" + # ---------------------------------------------------------------------- # FUNCTIONS # ---------------------------------------------------------------------- @@ -233,7 +236,7 @@ action=$1 while true; do echo - echo -e "\e[32m===== INITIALIZER FOR APP [$APP_NAME] ===== \e[0m" + echo -e "\e[32m===== INITIALIZER FOR DOCKER APP [$APP_NAME] v$_version ===== \e[0m\n\r" if [ -z "$action" ]; then @@ -282,7 +285,7 @@ while true; do _wait ;; u) - if docker-compose --verbose up -d --remove-orphans --build; then + if docker-compose -p "$APP_NAME" --verbose up -d --remove-orphans --build; then # test ! -z "${APP_ONSTARTUP}" && sleep 2 && docker exec -it appmonitor-server /bin/bash -c "${APP_ONSTARTUP}" echo "In a web browser:" echo " $frontendurl"