*** newbie alert ***
I am new to Bitwarden_rs, Docker and not so new to Raspberry pi and Linux
Installed bitwarden_rs on Raspberry Pi 4 and after successful installation, any method I use to manage the headless Raspberry pi 4, VNC, XRDP and SSH keeps disconnecting every few seconds making working on PI impossible. Same symptoms from windows 10 or another Raspberry Pi 3. When I stop the bitwarden container the disconnects stop. I am trying to learn Docker so most likely it is me doing something wrong. Any help in solving this or any pointer on where to start trouble shooting this is greatly appreciated.
I have tried both using Rocket and reverse proxy on nginx in conjunction with Bitwarden to connect thru ssl and the end result is the same. My preference is to use nginx as I have other projects that would require ssl and a reverse proxy.
It would be useful to post how you start your docker container, and whether you configured the docker service (on the RPi) in any specific way (or just installed it).
Obviously what you witness should not happen. I would wildly guess some networking issue (though I do not really see how the docker networking would clash with the host one)
I start the bitwarden_rs using docker-compose and here is my Docker-Compose file
#— #Docker-compose file for Bitwarde_rs
#—
version: “3”
services:
bitwardenrs:
restart: always
# Dani Garcia image https://github.com/dani-garcia/bitwarden_rs
image: “bitwardenrs/server:latest”
container_name: bitwarden
environment:
# Timezone settings, important for Fail2ban to work
- TZ=America/New_York
# Logging connection attemps
- LOG_FILE=/data/bitwarden.log
- EXTENDED_LOGGING=‘true’
- LOG_LEVEL=warn
# Beef up a bit
- ROCKET_WORKERS=20
- WEBSOCKET_ENABLED=‘true’
# Hardening a bit
- SIGUPS_ALLOWED=‘false’
- WEBSOCKET_ENABLED=true #- SHOW_PASSWORD_HINT=‘false’
- DISABLE_ICON_DOWNLOAD=‘true’ #expose:
# - “8005”
ports:
- 8005:80
- 3012:3012
- 465:465 #networks:
# - bitwarden_net
volumes:
- /docker_data/bitwarden/:/data/
I also changed the default Docker0 ip address and my /etc/docker/daemon.json file looks like this
{
“bip”: “192.168.1.5/24”,
“fixed-cidr”: “192.168.1.5/25”,
“default-address-pools”:
[
{“base”:“192.168.2.5/24”,“size”:28}
]
}
I have tried the default and also 10.x.x.x and the final results are the same.