uci-edit-server/stop
David Kebler 62b24b6713 builds custom environment file from a cfg file and uses docker env-file option to use in yaml template file
which uses make-env-file script that sets defaults against the cfg settings.
2021-01-16 21:27:50 -08:00

6 lines
294 B
Bash
Executable file

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