Cleanup docker run of bitwarden
This commit is contained in:
parent
3f33b8e73f
commit
4beecfb478
|
@ -27,6 +27,16 @@ cat > /scratch/docker/bitwarden.sh <<EOF
|
|||
# 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
|
||||
|
@ -41,16 +51,18 @@ docker container stop bitwarden
|
|||
docker container rm bitwarden
|
||||
|
||||
docker run \\
|
||||
--name nextcloud \\
|
||||
--name bitwarden \\
|
||||
--restart unless-stopped \\
|
||||
--net docker-private \\
|
||||
--ip 172.30.7.7 \\
|
||||
--ip 172.30.12.23 \\
|
||||
-e TZ=UTC \\
|
||||
-e DEBUG=1 \\
|
||||
-e SIGNUPS_ALLOWED=false \\
|
||||
-e WEBSOCKET_ENABLED=true \\
|
||||
-v /var/bitwarden:/data \\
|
||||
registry.lollipopcloud.solutions/\$ARCH/bitwarden_rs
|
||||
-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
|
||||
|
||||
|
|
Reference in New Issue