From 2ebdd41cb66c54e825b24217714c07a98b039a5a Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Fri, 16 Apr 2021 02:36:37 -0700 Subject: [PATCH] remove example that doesn't actually compose any services --- Using-Docker-Compose.md | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/Using-Docker-Compose.md b/Using-Docker-Compose.md index 13f75cd..095247c 100644 --- a/Using-Docker-Compose.md +++ b/Using-Docker-Compose.md @@ -76,28 +76,4 @@ docker-compose down ``` stops and destroys the containers. -A similar Caddy-based example for Synology is available [here](https://github.com/sosandroid/docker-bitwarden_rs-caddy-synology). - -If there's no need for websocket notifications, you can run Bitwarden_rs alone. Here's my example. Actually I'm running Bitwarden_rs on my Raspberry Pi and I'm using bitwardenrs/server image. If you want to do the same, remember to change it to the example. -```yml -# docker-compose.yml -version: '3' - -services: - bitwarden: - image: bitwardenrs/server:latest - restart: always - volumes: - - ./bw-data:/data - - ./ssl:/ssl - ports: - - 443:80 - environment: - ROCKET_TLS: '{certs = "/ssl/fullchain.pem", key = "/ssl/key.pem"}' - LOG_FILE: '/data/bitwarden.log' - SIGNUPS_ALLOWED: 'true' -``` - -Even the server is running at the home network behind the NAT, I wanted to have Let's Encrypt's certificate. I followed this guide https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode. First set domain cname. And with CloudFlare export CF_Key and CF_Email or CF_Token and CF_Account_ID. https://github.com/Neilpang/acme.sh/wiki/dnsapi Then issue a cert. Finally install cert. `acme.sh --install-cert -d home.example.com --key-file /home/pi/ssl/key.pem --fullchain-file /home/pi/ssl/fullchain.pem` -Or simply use `acme.sh --issue -d home.example.com --challenge-alias otherdomain.com --dns dns_cf --key-file /home/pi/ssl/key.pem --fullchain-file /home/pi/ssl/fullchain.pem` -My domain's A record points to the binded IP on the last line of docker-compose.yml and there are no complaints about certificate. +A similar Caddy-based example for Synology is available [here](https://github.com/sosandroid/docker-bitwarden_rs-caddy-synology). \ No newline at end of file