From f56294dff85dc8ea06ee958e969e92e900632161 Mon Sep 17 00:00:00 2001 From: mr-vercetti <87.milewski@gmail.com> Date: Sun, 6 Feb 2022 21:52:15 +0000 Subject: [PATCH] Add bitwarden --- docker/.env.example | 4 ++++ docker/stacks/bitwarden/bitwarden.yml | 28 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 docker/stacks/bitwarden/bitwarden.yml diff --git a/docker/.env.example b/docker/.env.example index 16b6854..9f0c405 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -23,3 +23,7 @@ DB_PW= WG_URL= WG_PEERS= WG_ALLOWEDIPS= + +# bittwarden +BW_URL= +BW_ADMIN_TOKEN= diff --git a/docker/stacks/bitwarden/bitwarden.yml b/docker/stacks/bitwarden/bitwarden.yml new file mode 100644 index 0000000..e4d0d1b --- /dev/null +++ b/docker/stacks/bitwarden/bitwarden.yml @@ -0,0 +1,28 @@ +services: + bitwarden: + image: vaultwarden/server + container_name: bitwarden + networks: + - bitwarden + - proxy + environment: + - PUID=${PUID} + - PGID=${PGID} + - TZ=${TIMEZONE} + - DOMAIN=${BW_URL} + - WEBSOCKET_ENABLED=true + - SIGNUPS_ALLOWED=false + - ADMIN_TOKEN=${BW_ADMIN_TOKEN} + - LOG_FILE=/data/log/bitwarden.log + volumes: + - ${APPS_DIR}/bitwarden:/data + ports: + - 8080:80 + restart: unless-stopped + +networks: + proxy: + external: + name: proxy + bitwarden: + name: bitwarden