Merge branch 'update-run-scripts' of kemonine/docs into master
This commit is contained in:
commit
6c67279e3a
|
@ -15,57 +15,7 @@ Setup a generic script that'll auto update bitwarden, build a container and laun
|
||||||
|
|
||||||
mkdir -p /var/bitwarden
|
mkdir -p /var/bitwarden
|
||||||
|
|
||||||
cat > /scratch/docker/bitwarden.sh <<EOF
|
wget -O bitwarden.sh https://git.lollipopcloud.solutions/lollipop-docker/misc/raw/branch/master/run_bitwarden.sh
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
##########
|
|
||||||
# For postgresql instead of sqlite run the following commands
|
|
||||||
#docker exec -it postgres psql -U postgres
|
|
||||||
#create role bitwarden nocreatedb nocreaterole login PASSWORD 'password';
|
|
||||||
#create database bitwarden owner=bitwarden encoding=UTF8;
|
|
||||||
|
|
||||||
# Setup using the above database/username/role and ip of 172.30.12.12
|
|
||||||
##########
|
|
||||||
|
|
||||||
# -e SMTP_HOST=<smtp.domain.tld> \
|
|
||||||
# -e SMTP_FROM=<bitwarden@domain.tld> \
|
|
||||||
# -e SMTP_PORT=587 \
|
|
||||||
# -e SMTP_SSL=true \
|
|
||||||
# -e SMTP_USERNAME=<username> \
|
|
||||||
# -e SMTP_PASSWORD=<password> \
|
|
||||||
|
|
||||||
# openssl rand -base64 48
|
|
||||||
# -e ADMIN_TOKEN=[above_output]
|
|
||||||
|
|
||||||
ARCH=\`arch\`
|
|
||||||
if [ \$ARCH == "aarch64" ]
|
|
||||||
then
|
|
||||||
ARCH="arm64v8"
|
|
||||||
else
|
|
||||||
ARCH="arm32v7"
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker pull registry.lollipopcloud.solutions/\$ARCH/bitwarden_rs
|
|
||||||
|
|
||||||
docker container stop bitwarden
|
|
||||||
docker container rm bitwarden
|
|
||||||
|
|
||||||
docker run \\
|
|
||||||
--name bitwarden \\
|
|
||||||
--restart unless-stopped \\
|
|
||||||
--net docker-private \\
|
|
||||||
--ip 172.30.12.23 \\
|
|
||||||
-e TZ=UTC \\
|
|
||||||
-e DEBUG=1 \\
|
|
||||||
-e WEBSOCKET_ENABLED=true \\
|
|
||||||
-e SIGNUPS_ALLOWED=false \\
|
|
||||||
-e DOMAIN=https://bitwarden.domain.tld \\
|
|
||||||
-e ADMIN_TOKEN=[see above] \\
|
|
||||||
-v /var/bitwarden/:/data/ \\
|
|
||||||
registry.lollipopcloud.solutions/\$ARCH/bitwarden_rs:latest
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod a+x /scratch/docker/bitwarden.sh
|
chmod a+x /scratch/docker/bitwarden.sh
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -22,44 +22,7 @@ Setup a generic script that'll auto update NextCloud, build a container and laun
|
||||||
mkdir -p /var/nextcloud/data /var/nextcloud/config
|
mkdir -p /var/nextcloud/data /var/nextcloud/config
|
||||||
chown -R www-data: /var/nextcloud
|
chown -R www-data: /var/nextcloud
|
||||||
|
|
||||||
cat > /scratch/docker/nextcloud.sh <<EOF
|
wget -O nextcloud.sh https://git.lollipopcloud.solutions/lollipop-docker/misc/raw/branch/master/run_nextcloud.sh
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
##########
|
|
||||||
# For postgresql instead of sqlite run the following commands
|
|
||||||
#docker exec -it postgres psql -U postgres
|
|
||||||
#create role nextcloud nocreatedb nocreaterole login PASSWORD 'password';
|
|
||||||
#create database nextcloud owner=nextcloud encoding=UTF8;
|
|
||||||
|
|
||||||
# Setup using the above database/username/role and ip of 172.30.12.12
|
|
||||||
##########
|
|
||||||
|
|
||||||
ARCH=\`arch\`
|
|
||||||
if [ \$ARCH == "aarch64" ]
|
|
||||||
then
|
|
||||||
ARCH="arm64v8"
|
|
||||||
else
|
|
||||||
ARCH="arm32v7"
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker pull registry.lollipopcloud.solutions/\$ARCH/nextcloud
|
|
||||||
|
|
||||||
docker container stop nextcloud
|
|
||||||
docker container rm nextcloud
|
|
||||||
|
|
||||||
docker run \\
|
|
||||||
--name nextcloud \\
|
|
||||||
--restart unless-stopped \\
|
|
||||||
--net docker-private \\
|
|
||||||
--ip 172.30.7.7 \\
|
|
||||||
-e TZ=UTC \\
|
|
||||||
-e DEBUG=1 \\
|
|
||||||
-v /var/nextcloud/data:/data \\
|
|
||||||
-v /var/nextcloud/config:/config \\
|
|
||||||
registry.lollipopcloud.solutions/\$ARCH/nextcloud
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod a+x /scratch/docker/nextcloud.sh
|
chmod a+x /scratch/docker/nextcloud.sh
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Reference in New Issue