bitwardenrs-docker-compose
Use docker-compose to deploy bitwardenrs with caddy, having the following features:
- HTTPS
- Let's encrypt certificate apply/renewal
Usage
-
Clone the repo.
git clone https://github.com/WqyJh/bitwardenrs-docker-compose bwrs/ cd bwrs/
-
Create config files.
cp .env.template .env
-
Config domain.
cat << EOF >> .env DOMAIN=https://bitwarden.example.com EOF cat << EOF > .caddyenv DOMAIN=bitwarden.example.com EMAIL=bitwarden@example.com EOF
-
Config smtp (optional).
cat << EOF >> .env SMTP_HOST=smtp. SMTP_FROM=bitwarden@example.com SMTP_FROM_NAME=Bitwarden_RS SMTP_PORT=587 SMTP_SSL=true SMTP_EXPLICIT_TLS=true SMTP_USERNAME=bitwarden@example.com SMTP_PASSWORD=password EOF
-
Start the server.
docker-compose up -d
-
Browse https://bitwarden.example.com to register an account and activate it.
-
Then disable signups for security consideration.
cat << EOF >> .env SIGNUPS_ALLOWED=false EOF docker-compose down docker-compose up -d