mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-29 21:10:16 +02:00
Updated Using Docker Compose (markdown)
parent
37e187ee84
commit
bb4fef6d8f
@ -80,28 +80,29 @@ docker-compose down
|
|||||||
stops and destroys the containers.
|
stops and destroys the containers.
|
||||||
|
|
||||||
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 mprasil/bitwarden:raspberry image. If you want to do the same, remember to change it to the example.
|
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 mprasil/bitwarden:raspberry image. If you want to do the same, remember to change it to the example.
|
||||||
|
```
|
||||||
`#docker-compose.yml`
|
#docker-compose.yml
|
||||||
`version: '3'`
|
version: '3'
|
||||||
`services:`
|
services:
|
||||||
`bitwarden:`
|
bitwarden:
|
||||||
`image: mprasil/bitwarden`
|
image: mprasil/bitwarden:raspberry
|
||||||
`restart: always`
|
restart: always
|
||||||
`volumes:`
|
volumes:
|
||||||
`- ./bw-data/:/data/`
|
- ./bw-data/:/data/
|
||||||
`- /home/pi/ssl/:/ssl/`
|
- /home/pi/ssl/:/ssl/
|
||||||
`environment:`
|
environment:
|
||||||
`ROCKET_TLS: '{certs = "/ssl/fullchain.pem", key = "/ssl/key.pem"}'`
|
ROCKET_TLS: '{certs = "/ssl/fullchain.pem", key = "/ssl/key.pem"}'
|
||||||
`SIGNUPS_ALLOWED: "true"`
|
SIGNUPS_ALLOWED: "true"
|
||||||
`SMTP_HOST: "smtp.host.net"`
|
SMTP_HOST: "smtp.host.net"
|
||||||
`SMTP_FROM: "no-reply@home.example.com"`
|
SMTP_FROM: "no-reply@home.example.com"
|
||||||
`SMTP_PORT: "587"`
|
SMTP_PORT: "587"
|
||||||
`SMTP_SSL: "true"`
|
SMTP_SSL: "true"
|
||||||
`SMTP_USERNAME: "xxx"`
|
SMTP_USERNAME: "xxx"
|
||||||
`SMTP_PASSWORD: "yyy"`
|
SMTP_PASSWORD: "yyy"
|
||||||
`LOG_FILE: "/data/bitwarden.log"`
|
LOG_FILE: "/data/bitwarden.log"
|
||||||
`ports:`
|
ports:
|
||||||
`- 192.168.1.20:443:80 #Server's home IP`
|
- 192.168.1.20:443:80 #Raspberry's home IP
|
||||||
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
My domains A record points to the binded IP on the last line and there are no complaints about certificate.
|
My domains A record points to the binded IP on the last line and there are no complaints about certificate.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user