Fix Directory Hardcodes, Documentation Improvements (#10)
* Improve the main crontab example. * Remove /opt/Docker hardcodes. * Add periods. * Improve readability. * Begin removing hardcoded path from the bin files. * Update main README to no longer enforce hardcoded path. Other improvements. * Add the load folder with a README. * Add load folder and its README. * Improve reverse proxy text files. * Switch to tabs. * Update all scripts for tabs, DOCKER_HOME, and comments. * Let users know the directory choice is optional. * Fix environment file. * Add more details for the reverse proxy load balancing. * Don't actually listen for postgres. * Fix comments on source file. * Be more explicit on the pathing.
This commit is contained in:
24
bin/start.sh
24
bin/start.sh
@@ -3,16 +3,26 @@
|
||||
# Start all containers.
|
||||
# usage: start.sh
|
||||
|
||||
source /opt/Docker/source.env
|
||||
## Setup ##
|
||||
|
||||
DIR="`dirname $0`"
|
||||
PROG=`basename $0`
|
||||
if [[ $DIR == *"."* ]]; then
|
||||
DIR="`pwd`"
|
||||
fi
|
||||
if [[ -z $DOCKER_HOME ]]; then
|
||||
DOCKER_HOME="$DIR/.."
|
||||
fi
|
||||
|
||||
## Main ##
|
||||
|
||||
cd $DOCKER_HOME/Config
|
||||
for dir in `ls`; do
|
||||
[ -d $dir ] && cd $dir || continue
|
||||
pwd
|
||||
[ -e Dockerfile ] && docker compose build
|
||||
[ -e docker-compose.yml ] && docker compose up -d
|
||||
cd ..
|
||||
[ -d $dir ] && cd $dir || continue
|
||||
pwd
|
||||
[ -e Dockerfile ] && docker compose build
|
||||
[ -e docker-compose.yml ] && docker compose up -d
|
||||
cd ..
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
||||
|
Reference in New Issue
Block a user