forked from FiligranHQ/zotprime
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add bin/install.sh script to configure and install server with …
…docker. Fix Minio IP address for connection from client
- Loading branch information
Showing
5 changed files
with
45 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# HOST=127.0.0.1 | ||
|
||
cp .env_example .env | ||
|
||
echo -n "Enter the IP address of the server. Leave empty for default 127.0.0.1 : " | ||
read HOST | ||
|
||
echo -n "Note in case IP address has a typo then edit manually .env file to correct it" | ||
echo | ||
read -p "Are you sure you want to continue? " -n 1 -r | ||
echo | ||
if [[ $REPLY =~ ^[Yy]$ ]] | ||
then | ||
case $HOST in | ||
"") SERVER=127.0.0.1 ;; | ||
*) SERVER=$HOST ;; | ||
esac | ||
echo "Server IP address is set to $SERVER" | ||
sed -i "s#http://127.0.0.1:8080/#http://$SERVER:8080/#g" .env | ||
|
||
fi | ||
|
||
if ! test -f ./docker-compose.yml; then | ||
cp docker-compose-prod.yml docker-compose.yml | ||
fi | ||
|
||
|
||
sudo docker compose up -d | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters