--- version: '3.7' services: # this will build the image - usually not needed # bw_test: # build: ./ # container_name: bw_test # ports: # - 8003:80 # volumes: # - bitwarden:/data/ # - ./test:/backup_folder/ # restart: on-failure # init: true # environment: # - DB_FILE=/data/db.sqlite3 # # uncomment this if you want your backup to be written to ./backup/ folder" # - BACKUP_FILE=/backup_folder/db_backup/backup.sqlite3 # - CRON_TIME=*/1 * * * * # - TIMESTAMP=false # - UID=1002 # - GID=1002 # bitwarden: image: bitwardenrs/server container_name: bitwarden ports: - 8002:80 volumes: - bitwarden:/data/ restart: on-failure bw_backup: image: bruceforce/bw_backup container_name: bw_backup restart: on-failure init: true depends_on: - bitwarden volumes: - bitwarden:/data/ - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro # uncomment this if you want your backup to be written to ./backup/ folder" # - ./backup:/backup_folder/ environment: - DB_FILE=/data/db.sqlite3 # uncomment this if you want your backup to be written to ./backup/ folder" # - BACKUP_FILE=/backup_folder/db_backup/backup.sqlite3 - BACKUP_FILE=/data/db_backup/backup.sqlite3 - CRON_TIME=0 5 * * * - TIMESTAMP=false - UID=0 - GID=0 - BACKUP_FILE_PERMISSIONS=700 volumes: bitwarden: