1
0
mirror of https://github.com/bitwarden/server synced 2025-12-11 13:53:40 +00:00

stop script

This commit is contained in:
Kyle Spearrin
2017-08-21 09:39:12 -04:00
parent 9049c48aed
commit c50b4657d6
5 changed files with 45 additions and 1 deletions

20
scripts/stop.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DOCKER_DIR=$DIR/../docker
if [ $# -eq 1 ]
then
DOCKER_DIR=$1
fi
OS="linux"
if [ "$(uname)" == "Darwin" ]
then
OS="macwin"
fi
docker --version
docker-compose --version
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down