13 lines
381 B
Bash
Executable File
13 lines
381 B
Bash
Executable File
#!/bin/bash
|
|
set -a #exports all variables and sourced variables
|
|
CURRENT_PATH="$(dirname -- "${BASH_SOURCE[0]}")"
|
|
source $VARIABLES_DIR
|
|
source $CURRENT_PATH/vars
|
|
|
|
if [[ "$RUN_PULL_CONTAINER" == "Y" ]]; then
|
|
docker-compose -f $CURRENT_PATH/docker-compose.yml pull
|
|
fi
|
|
|
|
docker-compose -f $CURRENT_PATH/docker-compose.yml down
|
|
docker-compose -f $CURRENT_PATH/docker-compose.yml up -d
|