Skip to content
Snippets Groups Projects
Commit c419ad9a authored by Axel Hahn's avatar Axel Hahn
Browse files

init v1.2 - use appname in docker-compose up

parent 0c31d26a
No related branches found
No related tags found
Loading
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment