-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docker-compose installation script and modified scripts
- Loading branch information
Showing
12 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,10 @@ | ||
#!/bin/bash | ||
|
||
sudo apt remove docker-compose -y | ||
sudo rm /usr/local/bin/docker-compose | ||
|
||
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d') | ||
DESTINATION=/usr/local/bin/docker-compose | ||
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION | ||
sudo chmod 755 $DESTINATION | ||
docker-compose version |
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,28 @@ | ||
# Praise Scripts | ||
Praise comes with a few bash scripts to simplify the management of a Praise installation. | ||
Run scripts using: | ||
``` | ||
bash scriptname.sh | ||
``` | ||
## docker-compose-latest.sh | ||
Installs the latest version of docker-compose automatically. | ||
**Note:** This is a prerequisite to run all praise services | ||
## setup.sh | ||
Builds and runs the Praise setup script. Run this script before starting Praise the first time. | ||
## start.sh | ||
Starts all Praise services. | ||
## restart.sh | ||
Restarts all Praise services. Run this command after changing the server settings. | ||
## upgrade.sh | ||
Downloads new server images and restarts Praise to perform the upgrade. | ||
## database-backup.sh | ||
Makes a full backup of the database. Backup is saved as a file in the current folder. Script uses login information in .env. | ||
## database-restore.sh | ||
**Usage:** | ||
``` | ||
bash database-restore.sh [filename] | ||
``` | ||
Deletes the currently active database and replaces it with data from the backup. | ||
## reset.sh | ||
Shuts down all running Praise services, deletes all containers and images. | ||
**Warning**: Use with caution. N.b. The server setting are not reset, all database passwords etc are left untouched. |
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,3 @@ | ||
#!/bin/bash | ||
docker-compose -f ./docker-compose.production.yml down | ||
docker-compose -f ./docker-compose.production.yml up |
File renamed without changes.
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,2 @@ | ||
#!/bin/bash | ||
docker-compose -f ./docker-compose.production.yml 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
bash database-backup.sh | ||
docker-compose -f ./docker-compose.production.yml pull | ||
docker-compose -f ./docker-compose.production.yml down | ||
docker-compose -f ./docker-compose.production.yml up -d --remove-orphans |
This file was deleted.
Oops, something went wrong.