node-red-app/start

10 lines
408 B
Bash
Executable File

#!/bin/bash
[[ ! $1 ]] && echo "no eapp set, usage start <nodred app>" && exit
SDIR=$(cd $(dirname $(readlink -f "$0")) >/dev/null 2>&1 ; pwd -P)
env_file=$SDIR/apps/docker.${1}.env
echo $env_file
[[ ! -f "$env_file" ]] && echo file does not exist && $SDIR/make-env-file $1 && echo making env file from cfg
cat $env_file
# -p for separate container instances
docker-compose -p $1 --env-file $env_file up -d