kemonine
/
lollipopcloud
Archived
1
0
Fork 0

Cleanup docker run of bitwarden

This commit is contained in:
KemoNine 2019-02-16 19:09:31 +00:00
parent 3f33b8e73f
commit 4beecfb478
1 changed files with 17 additions and 5 deletions

View File

@ -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