7 lines
290 B
Plaintext
7 lines
290 B
Plaintext
|
#!/bin/bash
|
||
|
[[ ! $1 ]] && echo "no app set, usage start <nodered app>" && exit
|
||
|
SDIR=$(cd $(dirname $(readlink -f "$0")) >/dev/null 2>&1 ; pwd -P)
|
||
|
env_file=$SDIR/apps/docker.${1}.env
|
||
|
[[ ! -f $env_file ]] && $($SDIR/make-env-file $1)
|
||
|
docker-compose --env-file $SDIR/apps/docker.${1}.env down
|