1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00
bitwarden-server/scripts/run.sh

22 lines
447 B
Bash
Raw Normal View History

2017-08-07 17:24:16 +02:00
#!/usr/bin/env bash
set -e
2017-08-19 21:27:57 +02:00
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2017-08-08 21:52:42 +02:00
DOCKER_DIR=$DIR/../docker
2017-08-20 03:45:13 +02:00
if [ $# -eq 1 ]
then
DOCKER_DIR=$1
fi
2017-08-21 14:49:44 +02:00
OS="linux"
if [ "$(uname)" == "Darwin" ]
2017-08-20 03:45:13 +02:00
then
2017-08-21 14:49:44 +02:00
OS="macwin"
2017-08-20 03:45:13 +02:00
fi
2017-08-07 17:24:16 +02:00
docker --version
docker-compose --version
2017-08-20 03:45:13 +02:00
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml up -d