add pairgoth and containers
This commit is contained in:
15
backup/00_backup.sh
Executable file
15
backup/00_backup.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
cd ../private
|
||||
rm -rf gitea
|
||||
mkdir gitea
|
||||
scp -r server:/var/lib/gitea gitea
|
||||
scp server:/etc/gitea/app.ini gitea
|
||||
|
||||
|
||||
mkdir personal_website
|
||||
scp server:/root/personal_website/mydb.sqlite personal_website
|
||||
|
||||
mkdir vaultwarden
|
||||
scp server:/root/vaultwarden/db.sqlite3 vaultwarden
|
||||
scp server:/root/vaultwarden/rsa_key.pem vaultwarden
|
||||
|
||||
|
@@ -1,5 +0,0 @@
|
||||
cd ../private
|
||||
rm -rf gitea
|
||||
mkdir gitea
|
||||
scp -r server:/var/lib/gitea gitea
|
||||
scp server:/etc/gitea/app.ini gitea
|
@@ -1,3 +0,0 @@
|
||||
cd ../private
|
||||
mkdir personal_website
|
||||
scp server:/root/personal_website/mydb.sqlite personal_website
|
24
files/my-pairgoth.service
Normal file
24
files/my-pairgoth.service
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
# describe the app
|
||||
Description=Pairgoth
|
||||
# start the app after the network is available
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
# usually you'll use 'simple'
|
||||
# one of https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=
|
||||
Type=simple
|
||||
# which user to use when starting the app
|
||||
User=root
|
||||
# path to your application's root directory
|
||||
WorkingDirectory=/root/pairgoth
|
||||
# the command to start the app
|
||||
# requires absolute paths
|
||||
ExecStart=/root/pairgoth/run.sh
|
||||
# restart policy
|
||||
# one of {no|on-success|on-failure|on-abnormal|on-watchdog|on-abort|always}
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
# start the app automatically
|
||||
WantedBy=multi-user.target
|
17
scripts/15_pairgoth.sh
Normal file
17
scripts/15_pairgoth.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
cd ..
|
||||
cp files/my-pairgoth.service /etc/systemd/system/my-pairgoth.service
|
||||
|
||||
|
||||
cd /root
|
||||
wget https://git.petrovv.com/nikola/pairgoth/releases/download/current/pairgoth.tar.gz
|
||||
tar -xzf pairgoth.tar.gz
|
||||
rm pairgoth.tar.gz
|
||||
cd pairgoth
|
||||
./get_java.sh
|
||||
rm OpenJDK11U-jre_x64_linux_hotspot_11.0.28_6.tar.gz
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable my-pairgoth
|
||||
systemctl start my-pairgoth
|
||||
|
8
scripts/20_containers.sh
Normal file
8
scripts/20_containers.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
podman pull docker.io/erikvl87/languagetool:latest
|
||||
podman run --restart=always -d -p 8010:8010 -e Java_Xms=512m -e Java_Xmx=2g --name languagetool-cont docker.io/erikvl87/languagetool
|
||||
|
||||
mkdir /root/vaultwarden/
|
||||
podman pull docker.io/vaultwarden/server:latest
|
||||
podman run -d --restart=always -e SIGNUPS_ALLOWED=false -v /root/vaultwarden/:/data/ -p 6080:80 --name vaultwarden-cont vaultwarden/server:latest
|
||||
|
Reference in New Issue
Block a user