Chad
fbad19dc51
* Add newlines in output. * Remove fancy DNS attempts to get NC and OO to talk. Just had to give NC the local IP through the Advanced settings. Yay!!
32 lines
484 B
Bash
Executable File
32 lines
484 B
Bash
Executable File
#!/bin/bash
|
|
# 2022-08-05 Hyperling
|
|
# Start all containers.
|
|
# usage: start.sh
|
|
|
|
## Setup ##
|
|
|
|
DIR="`dirname $0`"
|
|
PROG=`basename $0`
|
|
if [[ $DIR == *"."* ]]; then
|
|
DIR="`pwd`"
|
|
fi
|
|
if [[ -z $DOCKER_HOME ]]; then
|
|
DOCKER_HOME="$DIR/.."
|
|
fi
|
|
|
|
## Main ##
|
|
|
|
echo "Starting all containers."
|
|
|
|
cd $DOCKER_HOME/Config
|
|
for dir in `ls`; do
|
|
[ -d $dir ] && cd $dir || continue
|
|
echo ""
|
|
pwd
|
|
[ -e Dockerfile ] && docker compose build
|
|
[ -e docker-compose.yml ] && docker compose up -d
|
|
cd ..
|
|
done
|
|
|
|
exit 0
|