I wrote a post about deploying Bitwarden a few months back. At the time, global configuration has not been introduced to Traefik 2. I’ve also changed the way of deploying services with Traefik since Traefik 2.2. I guess it is time to revisit my previous post and write an updated version to match my current set up.
As always，let me post my
docker-compose.yml file first.
Please note, my
docker-compose.ymlis meant to be used with my Traefik configurations. It might not work with your set ups. You can find my Traefik configuration at this link
As you can see I’ve added a
bw-stripPrefix middleware for
Websocket. This middle ware will be added in
dynamic.yml as below:
# Dynamic configuration
There are a lot of settings you can use on official wiki. In my set up, I’ve set
Disable registration and
Disable invitations. You can add/remove features to suit your needs. I want to mention
Admin Page specially because a lot of setting like SMTP can be set on Admin page. You don’t have to usea
config.json file or a lot of environment variables on your
Admin Page is relatively easy to set up. All you need is a
ADMIN_TOKEN environment variable. On the official document, they provided command
openssl rand -base64 48 to generate a 48 bit random token with
I will update this post with a video later. If you have any questions, please feel free to contact me.
Thank you for reading, see you next time.