#!/bin/bash [[ ! $1 ]] && echo "no editor set, usage start " && exit SDIR=$(cd $(dirname $(readlink -f "$0")) >/dev/null 2>&1 ; pwd -P) env_file=$SDIR/editors/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