2021-12-02 09:33:38 +13:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# go into the app dir
|
|
|
|
cd /root
|
|
|
|
|
2022-01-12 08:33:22 +13:00
|
|
|
# fetch nginx and docker-compose files
|
2021-12-02 09:33:38 +13:00
|
|
|
wget https://raw.githubusercontent.com/Budibase/budibase/master/hosting/docker-compose.yaml
|
|
|
|
wget https://raw.githubusercontent.com/Budibase/budibase/master/hosting/hosting.properties
|
|
|
|
|
|
|
|
# Create .env file from hosting.properties using bash and then remove it
|
|
|
|
while read line; do
|
|
|
|
uuid=$(uuidgen)
|
|
|
|
echo $line | sed "s/budibase/$uuid/g" | sed "s/testsecret/$uuid/g" >> .env
|
|
|
|
done <hosting.properties
|
|
|
|
rm hosting.properties
|
|
|
|
|
|
|
|
# boot the stack
|
|
|
|
docker-compose up -d
|
|
|
|
|
|
|
|
# return
|
|
|
|
cd -
|