From 2ee28d7256e7156fa233fd9927a10e8651350851 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Wed, 21 Aug 2024 09:44:50 -0300 Subject: [PATCH] Add bitwarden stack --- bitwarden/.env.example | 9 +++++++++ bitwarden/docker-compose.yml | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 bitwarden/.env.example create mode 100644 bitwarden/docker-compose.yml diff --git a/bitwarden/.env.example b/bitwarden/.env.example new file mode 100644 index 0000000..e5abbae --- /dev/null +++ b/bitwarden/.env.example @@ -0,0 +1,9 @@ +BW_TAR_PASS= +BW_ACCOUNT_SOURCE= +BW_PASS_SOURCE= +BW_CLIENTID_SOURCE= +BW_CLIENTSECRET_SOURCE= +BW_ACCOUNT_DEST= +BW_PASS_DEST= +BW_CLIENTID_DEST= +BW_CLIENTSECRET_DEST= \ No newline at end of file diff --git a/bitwarden/docker-compose.yml b/bitwarden/docker-compose.yml new file mode 100644 index 0000000..3490f61 --- /dev/null +++ b/bitwarden/docker-compose.yml @@ -0,0 +1,23 @@ +version: "3.6" +services: + vaultwarden: + image: vaultwarden/server:latest + container_name: vaultwarden + restart: always + environment: + DOMAIN: "https://bitwarden.shoebottom.ca" # required when using a reverse proxy; your domain; vaultwarden needs to know it's https to work properly with attachments + SIGNUPS_ALLOWED: "true" # Deactivate this with "false" after you have created your account so that no strangers can register + volumes: + - /docker/appdata/bitwarden/vaultwarden:/data # the path before the : can be changed + ports: + - 11001:80 # you can replace the 11001 with your preferred port + bitwarden-sync: + image: martadams89/bitwarden-sync:latest + container_name: bitwarden-sync + restart: always + environment: + - CRON_SCHEDULE=0 0 * * * + - BW_SERVER_SOURCE=https://bitwarden.shoebottom.ca + - BW_SERVER_DEST=https://vault.bitwarden.com + volumes: + - /docker/appdata/bitwarden/sync:/app/backups \ No newline at end of file