/vaultwarden_gcloud

Vaultwarden installation optimized for Google Cloud's 'always free' f1-micro compute instance

Primary LanguageShellMIT LicenseMIT

Bitwarden self-hosted on Google Cloud for Free


3 April 2023 Alert: Recent changes to Vaultwarden may cause Vaultwarden to fail to start due to default environmental variables. .env.template has been updated in this repo, however, if you are affected, you must also update .env and comment out all YUBICO_* variables, so that they appear as:

#YUBICO_CLIENT_ID=
#YUBICO_SECRET_KEY=
#YUBICO_SERVER=

Restart with docker-compose, and Vaultwarden should come up as normal. Credit to @AySz88 for reporting this.


Features

  • Bitwarden self-hosted (via Vaultwarden) on Google Cloud 'always free' e2-micro tier
  • Automatic https certificate management through Caddy 2 proxy
  • Dynamic DNS updates through ddclient
  • Blocking brute-force attempts with fail2ban
  • Country-wide blocking through iptables and ipset
  • Automatic backups

Installation

Follow the guide in the wiki to install and configure Bitwarden self-hosted on Google Cloud