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:
2023-07-23 14:51:48 -07:00
committed by GitHub
parent e383520ebb
commit 8602f7ada2
18 changed files with 150 additions and 77 deletions

View File

@ -3,7 +3,17 @@
# Create new container template.
# usage: create.sh PROJECT_NAME
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
## Validation ##
@ -26,10 +36,9 @@ file="$dir/docker-compose.yml"
cd $DOCKER_HOME
mkdir -pv "$dir"
[[ ! -f "$file" ]] && echo -e "# Comment.\nservices:\n" >> "$file" ||
[[ ! -f "$file" ]] && echo -e "# Comment.\nservices:\n" >> "$file" ||
echo "File already exists, leaving contents alone."
echo "${file}:"
cat "$file"
exit 0