fix formatting.... again.
This commit is contained in:
67
deploy.sh
67
deploy.sh
@@ -163,13 +163,13 @@ publicip="$(curl -fsS https://api.ipify.org || curl -fsS https://ifconfig.me ||
|
||||
localip="$(hostname -I | awk '{print $1}')"
|
||||
|
||||
echo "--------------------------------------------------------"
|
||||
echo "please double-check your ${cyan}DNS records${nc} to ensure they are set. the following dns records need to be set:"
|
||||
echo -e "please double-check your ${cyan}DNS records${nc} to ensure they are set. the following dns records need to be set:"
|
||||
echo ""
|
||||
echo "|name |type |value "
|
||||
echo "|@ |A |$publicip "
|
||||
echo "|* |CNAME |@ "
|
||||
echo ""
|
||||
echo "once you've done this, press any key to ${underline}continue${nc}"
|
||||
echo -e "once you've done this, press any key to ${underline}continue${nc}"
|
||||
read -n 1 -s -r -p ""
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ echo "DNSStubListener=no" | tee -a /etc/systemd/resolved.conf
|
||||
cd /opt/dockge
|
||||
docker compose up -d
|
||||
|
||||
echo "${cyan}Dockge${nc} has been installed and launched. go to http://$localip:5001 and configure your username and password, then press any key to continue"
|
||||
echo -e "${cyan}Dockge${nc} has been installed and launched. go to http://$localip:5001 and configure your username and password, then press any key to continue"
|
||||
read -n 1 -s -r -p ""
|
||||
|
||||
# call replacements for nginx db
|
||||
@@ -294,74 +294,74 @@ replace_in_sqlite_db "/opt/stacks/npm/data/database.sqlite" "<adminemail>" $admi
|
||||
cd /opt/stacks/npm
|
||||
docker compose up -d
|
||||
|
||||
echo "${cyan}Nginx Proxy Manager${nc} has been installed and launched. go to http://$localip:81 and configure your username and password, then press any key to continue"
|
||||
echo -e "${cyan}Nginx Proxy Manager${nc} has been installed and launched. go to http://$localip:81 and configure your username and password, then press any key to continue"
|
||||
read -n 1 -s -r -p ""
|
||||
|
||||
cd /opt/stacks/dozzle
|
||||
docker compose up -d
|
||||
echo "${cyan}dozzle${nc} has been launched from http://dozzle.$domain, verify it is online, do not worry if the UI gives a time-out error, this is due to docker being busy while this script runs."
|
||||
echo -e "${cyan}dozzle${nc} has been launched from http://dozzle.$domain, verify it is online, do not worry if the UI gives a time-out error, this is due to docker being busy while this script runs."
|
||||
|
||||
cd /opt/stacks/convertx
|
||||
docker compose up -d
|
||||
echo "${cyan}convertx${nc} has been launched from http://convert.$domain, verify it is online"
|
||||
echo -e "${cyan}convertx${nc} has been launched from http://convert.$domain, verify it is online"
|
||||
|
||||
cd /opt/stacks/wireguard
|
||||
docker compose up -d
|
||||
echo "${cyan}wireguard${nc} has been launched from http://vpn.$domain, verify it is online"
|
||||
echo -e "${cyan}wireguard${nc} has been launched from http://vpn.$domain, verify it is online"
|
||||
|
||||
cd /opt/stacks/it-tools
|
||||
docker compose up -d
|
||||
echo "${cyan}it-tools${nc} has been launched from http://tools.$domain, verify it is online"
|
||||
echo -e "${cyan}it-tools${nc} has been launched from http://tools.$domain, verify it is online"
|
||||
|
||||
cd /opt/stacks/onlyoffice
|
||||
docker compose up -d
|
||||
echo "${cyan}onlyoffice${nc} has been launched from http://tools.$domain, verify it is online"
|
||||
echo -e "${cyan}onlyoffice${nc} has been launched from http://tools.$domain, verify it is online"
|
||||
|
||||
#owncloud
|
||||
# todo: use OC config commands to install addons and configure onlyoffice
|
||||
cd /opt/stacks/owncloud
|
||||
docker compose up -d
|
||||
echo "${cyan}owncloud${nc} has been launched from http://cloud.$domain, check if it is online and working, it may take a bit to launch. feel free to add marketplace plugins"
|
||||
echo -e "${cyan}owncloud${nc} has been launched from http://cloud.$domain, check if it is online and working, it may take a bit to launch. feel free to add marketplace plugins"
|
||||
|
||||
|
||||
cd /opt/stacks/site
|
||||
docker compose up -d
|
||||
echo "${cyan}site${nc} has been launched from http://www.$domain, verify it is online"
|
||||
echo -e "${cyan}site${nc} has been launched from http://www.$domain, verify it is online"
|
||||
|
||||
cd /opt/stacks/vaultwarden
|
||||
docker compose up -d
|
||||
echo "${cyan}vaultwarden${nc} has been launched from http://vault.$domain, verify it is online"
|
||||
echo -e "${cyan}vaultwarden${nc} has been launched from http://vault.$domain, verify it is online"
|
||||
|
||||
|
||||
|
||||
cd /opt/stacks/downloader
|
||||
docker compose up -d
|
||||
echo "${cyan}downloader${nc} has been launched from http://download.$domain, verify it is online"
|
||||
echo -e "${cyan}downloader${nc} has been launched from http://download.$domain, verify it is online"
|
||||
echo ""
|
||||
echo "recap of all available services up to now:"
|
||||
echo "${cyan}owncloud${nc} has been launched from http://cloud.$domain, check if it is online and working, it may take a bit to launch. feel free to add marketplace plugins"
|
||||
echo "${cyan}vaultwarden${nc} has been launched from http://vault.$domain, verify it is online"
|
||||
echo "${cyan}site${nc} has been launched from http://www.$domain, verify it is online"
|
||||
echo "${cyan}onlyoffice${nc} has been launched from http://tools.$domain, verify it is online"
|
||||
echo "${cyan}it-tools${nc} has been launched from http://tools.$domain, verify it is online"
|
||||
echo "${cyan}wireguard${nc} has been launched from http://vpn.$domain, verify it is online"
|
||||
echo "${cyan}convertx${nc} has been launched from http://convert.$domain, verify it is online"
|
||||
echo "${cyan}downloader${nc} has been launched from http://download.$domain, verify it is online"
|
||||
echo "${cyan}dozzle${nc} has been launched from http://dozzle.$domain, verify it is online, do not worry if the UI gives a time-out error, this is due to docker being busy while this script runs."
|
||||
echo "${cyan}Nginx Proxy Manager${nc} has been installed, configured and launched from http://proxy.$domain"
|
||||
echo "${cyan}Dockge${nc} has been installed, configured and launched from http://docker.$domain"
|
||||
echo -e "recap of all available services up to now:"
|
||||
echo -e "${cyan}owncloud${nc} has been launched from http://cloud.$domain, check if it is online and working, it may take a bit to launch. feel free to add marketplace plugins"
|
||||
echo -e "${cyan}vaultwarden${nc} has been launched from http://vault.$domain, verify it is online"
|
||||
echo -e "${cyan}site${nc} has been launched from http://www.$domain, verify it is online"
|
||||
echo -e "${cyan}onlyoffice${nc} has been launched from http://tools.$domain, verify it is online"
|
||||
echo -e "${cyan}it-tools${nc} has been launched from http://tools.$domain, verify it is online"
|
||||
echo -e "${cyan}wireguard${nc} has been launched from http://vpn.$domain, verify it is online"
|
||||
echo -e "${cyan}convertx${nc} has been launched from http://convert.$domain, verify it is online"
|
||||
echo -e "${cyan}downloader${nc} has been launched from http://download.$domain, verify it is online"
|
||||
echo -e "${cyan}dozzle${nc} has been launched from http://dozzle.$domain, verify it is online, do not worry if the UI gives a time-out error, this is due to docker being busy while this script runs."
|
||||
echo -e "${cyan}Nginx Proxy Manager${nc} has been installed, configured and launched from http://proxy.$domain"
|
||||
echo -e "${cyan}Dockge${nc} has been installed, configured and launched from http://docker.$domain"
|
||||
|
||||
|
||||
#bookstack
|
||||
cd /opt/stacks/bookstack
|
||||
docker compose up -d
|
||||
echo "${cyan}bookstack${nc} has been launched from http://docs.$domain, verify it is online (this may take a bit) and log in with email 'admin@admin.com' and password 'password', then reset this account to use $adminemail and your password. afterwards, press any key to continue"
|
||||
echo -e "${cyan}bookstack${nc} has been launched from http://docs.$domain, verify it is online (this may take a bit) and log in with email 'admin@admin.com' and password 'password', then reset this account to use $adminemail and your password. afterwards, press any key to continue"
|
||||
read -n 1 -s -r -p ""
|
||||
|
||||
#browser
|
||||
cd /opt/stacks/browser
|
||||
docker compose up -d
|
||||
echo "${cyan}filebrowser${nc} has been launched from http://browser.$domain, head to dockge (http://docker.$domain), open the filebrowser stack and check the logs for the initial admin password. make sure to change this in filebrowser's config, then press any key to continue"
|
||||
echo -e "${cyan}filebrowser${nc} has been launched from http://browser.$domain, head to dockge (http://docker.$domain), open the filebrowser stack and check the logs for the initial admin password. make sure to change this in filebrowser's config, then press any key to continue"
|
||||
read -n 1 -s -r -p ""
|
||||
|
||||
#jellyfin
|
||||
@@ -369,26 +369,26 @@ cd /opt/stacks/jellyfin
|
||||
docker compose up -d
|
||||
mkdir /opt/stacks/jellyfin/media/shows
|
||||
mkdir /opt/stacks/jellyfin/media/movies
|
||||
echo "${cyan}jellyfin${nc} has launched from http://video.$domain, perform the initial setup and press any key to continue"
|
||||
echo -e "${cyan}jellyfin${nc} has launched from http://video.$domain, perform the initial setup and press any key to continue"
|
||||
read -n 1 -s -r -p ""
|
||||
|
||||
#uptimekuma
|
||||
cd /opt/stacks/kuma
|
||||
docker compose up -d
|
||||
echo "${cyan}uptime kuma${nc} has been launched from http://status.$domain, perform the initial setup, choosing embedded mariaDB, then press any key to continue"
|
||||
echo -e "${cyan}uptime kuma${nc} has been launched from http://status.$domain, perform the initial setup, choosing embedded mariaDB, then press any key to continue"
|
||||
read -n 1 -s -r -p ""
|
||||
|
||||
#pihole
|
||||
systemctl restart systemd-resolved
|
||||
cd /opt/stacks/pihole
|
||||
docker compose up -d
|
||||
echo "${cyan}pihole${nc} has been launched from http://dns.$domain, to use pihole as your DNS provider, set your DNS to $localip in your router for DHCP and on your device for any device with a static ip. Currently, the DNS is configured to use the joindns4.eu DNS, which *also* has built-in adblocking."
|
||||
echo -e "${cyan}pihole${nc} has been launched from http://dns.$domain, to use pihole as your DNS provider, set your DNS to $localip in your router for DHCP and on your device for any device with a static ip. Currently, the DNS is configured to use the joindns4.eu DNS, which *also* has built-in adblocking."
|
||||
|
||||
#dashboard
|
||||
replace_in_sqlite_db "/opt/stacks/dashboard/config/www/app.sqlite" "<domain>" $domain
|
||||
cd /opt/stacks/dashboard
|
||||
docker compose up -d
|
||||
echo "${cyan}dashboard${nc} has been launched from http://dash.$domain, verify it is online, check that its entries work and press any button to continue"
|
||||
echo -e "${cyan}dashboard${nc} has been launched from http://dash.$domain, verify it is online, check that its entries work and press any button to continue"
|
||||
read -n 1 -s -r -p ""
|
||||
#doesnt work yet
|
||||
|
||||
@@ -396,9 +396,10 @@ read -n 1 -s -r -p ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo "you can now access the dockge GUI interface at $localip:5001 and the proxy interface at $localip:81 once you start it from Dockge. be sure to forward ports 80, 443 and 51820 to $localip in your router settings"
|
||||
echo "to use ${green}pihole${nc} as your DNS provider, set your DNS to $localip in your router for DHCP and on your device for any device with a static ip. Currently, the DNS is configured to use the joindns4.eu DNS, which also has built-in adblocking."
|
||||
echo -e "you can now access the dockge GUI interface at $localip:5001 and the proxy interface at $localip:81 once you start it from Dockge. be sure to forward ports 80, 443 and 51820 to $localip in your router settings"
|
||||
echo -e "to use ${green}pihole${nc} as your DNS provider, set your DNS to $localip in your router for DHCP and on your device for any device with a static ip. Currently, the DNS is configured to use the joindns4.eu DNS, which also has built-in adblocking."
|
||||
echo "please reboot before further use"
|
||||
|
||||
|
||||
|
||||
-e
|
||||
Reference in New Issue
Block a user