uci-edit-server/stop
kebler.net 16ab43f057 feat: support named pipe from container to host
fix: stop failed to stop continer and default network
2022-10-09 22:40:49 -07:00

7 lines
332 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 container stop $1-files-editor
docker-compose --env-file $SDIR/editors/docker.${1}.env down