diff --git a/start.sh b/start.sh index 231828a..ff392bd 100755 --- a/start.sh +++ b/start.sh @@ -5,6 +5,12 @@ #docker stack deploy -c compose.yml ${PWD##*/} + +# Check if .env file exists in the current directory +if [ ! -f ".env" ]; then + touch .env +fi + if [ -f ".env" ]; then env $(grep -v '^#' ${PWD}/.env | sed 's/#.*//' | xargs) docker stack deploy -c compose.yml ${PWD##*/} else